Function read_by_name

Source
pub async fn read_by_name<T>(
    auth: &impl FirebaseAuthBearer,
    document_name: &str,
) -> Result<T>
where for<'b> T: Deserialize<'b>,
Expand description

Read a document of a specific type from a collection by its Firestore document name

ยงArguments

  • auth The authentication token
  • document_name The document path / collection and document id; For example projects/my_project/databases/(default)/documents/tests/test