firestore library


A CollectionReference class can be used for adding documents, getting document references, and querying for documents (using the methods inherited from Query).
A DocumentChange represents a change to the documents matching a query. It contains the document affected and the type of change that occurred.
A DocumentReference refers to a document location in a Firestore database and can be used to write, read, or listen to the location. The document at the referenced location may or may not exist.
A DocumentSnapshot contains data read from a document in your Cloud Firestore database. The data can be extracted with data() or get(<field>) to get a specific field.
A FieldPath refers to a field in a document. The path may consist of a single field name (referring to a top-level field in the document), or a list of field names (referring to a nested field in the document).
Sentinel values that can be used when writing document fields with set() or update().
The Cloud Firestore service interface.
An immutable object representing a geo point in Cloud Firestore. The geo point is represented as latitude/longitude pair.
Settings that can be passed to Firestore.enablePersistence to configure Firestore persistence.
Query<T extends QueryJsImpl>
A Query refers to a Query which you can read or listen to. You can also construct refined Query objects by adding filters and ordering.
A QuerySnapshot contains zero or more DocumentSnapshot objects representing the results of a query. The documents can be accessed as an array via the docs property or enumerated using the forEach() method. The number of documents can be determined via the empty and size properties.
An object to configure the WriteBatch.set behavior. Pass {merge: true} to only replace the values specified in the data argument. Fields omitted will remain untouched.
Specifies custom configurations for your Cloud Firestore instance. You must set these before invoking any other methods.
Metadata about a snapshot, describing the state of the snapshot.
A reference to a transaction. The Transaction object passed to a transaction's updateFunction() provides the methods to read and write data within the transaction context. See: Firestore.runTransaction().
A write batch, used to perform multiple writes as a single atomic unit.


setLogLevel(String logLevel) → void
Sets the verbosity of Cloud Firestore logs.