Function read

Source
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 token
  • path The document path / collection; For example my_collection or a/nested/collection
  • document_id The document id. Make sure that you do not include the document id to the path argument.