[][src]Module firestore_db_and_auth::documents

Firestore Document Access

Interact with Firestore documents. Please check the root page of this documentation for examples.

Structs

List

This type is returned as a result by [list]. Use it as an iterator. The paging API is used internally and new pages are fetched lazily.

Query

This type is returned as a result by [query]. Use it as an iterator. The query API returns a list of document references, not the documents itself.

WriteOptions

Write options. The default will overwrite a target document and not merge fields.

WriteResult

This is returned by the write() method in a successful case.

Traits

JoinableIterator

An Iterator implementation that provides a join method

Functions

abs_to_rel

Converts an absolute path like "projects/{PROJECT_ID}/databases/(default)/documents/my_collection/document_id" into a relative document path like "my_collection/document_id"

delete

Deletes the document at the given path.

list

List all documents of a given collection.

query

Queries the database for specific documents, for example all documents in a collection of 'type' == "car".

read

Read a document of a specific type from a collection

read_by_name

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

write

Write a document to a given collection.