pub async fn read<T>(
auth: &impl FirebaseAuthBearer,
path: &str,
document_id: &str,
) -> Result<T>where
for<'b> T: Deserialize<'b>,
Expand description
Read a document of a specific type from a collection
ยงArguments
auth
The authentication tokenpath
The document path / collection; For examplemy_collection
ora/nested/collection
document_id
The document id. Make sure that you do not include the document id to the path argument.