firestore::
A query that calculates aggregations over an underlying query.
The results of executing an AggregateQuery.
A CollectionReference 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.
A DocumentReference refers to a document location in a Firestore database and can be used to write, read, or listen to the location.
A DocumentSnapshot contains data read from a document in your Firestore database.
A FieldPath refers to a field in a document.
A field value represents variant datatypes as stored by Firestore.
A Filter represents a restriction on one or more field values and can be used to refine the results of a Query.
Entry point for the Firebase Firestore C++ SDK.
An immutable object representing a geographical point in Firestore.
Represents a listener that can be removed by calling Remove().
Represents a progress update or the final state from loading bundles.
A Query which you can read or listen to.
A QuerySnapshot contains zero or more DocumentSnapshot objects.
An options object that configures the behavior of Set() calls.
Metadata about a snapshot, describing the state of the snapshot.
Transaction provides methods to read and write data within a transaction.
Options to customize transaction behavior for Firestore.runTransaction()
.
A write batch is used to perform multiple writes as a single atomic unit.
Namespaces | |
---|---|
firebase:: | |
firebase:: | |
firebase:: |
AggregateSource
The sources from which AggregateQuery::Get can retrieve its results.
Properties | |
---|---|
kServer | Perform the aggregation on the server and download the result. The result received from the server is presented, unaltered, without considering any local state. That is, documents in the local cache are not taken into consideration, neither are local modifications not yet synchronized with the server. Previously-downloaded results, if any, are not used. Every request using this source necessarily involves a round trip to the server. The AggregateQuery will fail if the server cannot be reached, such as if the client is offline. |
Error
Error codes used by Cloud Firestore.
The codes are in sync across Firestore SDKs on various platforms.
MetadataChanges
Indicates whether metadata-only changes (that is, DocumentSnapshot::metadata() or QuerySnapshot::metadata() changed) should trigger snapshot events.
Properties | |
---|---|
kExclude | Snapshot events will not be triggered by metadata-only changes. |
kInclude | Snapshot events will be triggered by any changes, including metadata-only changes. |
Source
Configures the behavior of DocumentReference::Get() and Query::Get().
By providing a Source value, these methods can be configured to fetch results only from the server, only from the local cache, or attempt to fetch results from the server and fall back to the cache (which is the default).
Properties | |
---|---|
kCache | Causes Firestore to immediately return a value from the cache, ignoring the server completely (implying that the returned value may be stale with respect to the value on the server). If there is no data in the cache to satisfy the DocumentReference::Get() call will return an error and Query::Get() will return an empty QuerySnapshot with no documents. |
kDefault | Causes Firestore to try to retrieve an up-to-date (server-retrieved) snapshot, but fall back to returning cached data if the server can't be reached. |
kServer | Causes Firestore to avoid the cache, generating an error if the server cannot be reached. Note that the cache will still be updated if the server request succeeds. Also note that latency-compensation still takes effect, so any pending write operations will be visible in the returned data (merged into the server-provided data). |
std::unordered_map<FieldPath,FieldValue>MapFieldPathValue
A map of FieldValue
s indexed by field paths.
std::unordered_map<std::string,FieldValue>MapFieldValue
A map of FieldValue
s indexed by stringified field paths.
booloperator!=(constDocumentReference&lhs,constDocumentReference&rhs)
Checks lhs
and rhs
for inequality.
booloperator!=(constQuerySnapshot&lhs,constQuerySnapshot&rhs)
Checks lhs
and rhs
for inequality.
booloperator!=(constTransactionOptions&lhs,constTransactionOptions&rhs)
Compares two TransactionOptions
objects for inequality.
booloperator!=(constSnapshotMetadata&lhs,constSnapshotMetadata&rhs)
Checks lhs
and rhs
for inequality.
booloperator!=(constAggregateQuerySnapshot&lhs,constAggregateQuerySnapshot&rhs)
Checks lhs
and rhs
for inequality.
booloperator!=(constDocumentSnapshot&lhs,constDocumentSnapshot&rhs)
Checks lhs
and rhs
for inequality.
booloperator!=(constDocumentChange&lhs,constDocumentChange&rhs)
Checks lhs
and rhs
for inequality.
booloperator!=(constAggregateQuery&lhs,constAggregateQuery&rhs)
Checks lhs
and rhs
for inequality.
booloperator!=(constLoadBundleTaskProgress&lhs,constLoadBundleTaskProgress&rhs)
LoadBundleTaskProgress != comparison operator.
booloperator<(constGeoPoint&lhs,constGeoPoint&rhs)
Checks whether lhs
and rhs
are in ascending order.
booloperator<=(constGeoPoint&lhs,constGeoPoint&rhs)
Checks whether lhs
and rhs
are in non-descending order.
booloperator==(constDocumentReference&lhs,constDocumentReference&rhs)
Checks lhs
and rhs
for equality.
booloperator==(constQuerySnapshot&lhs,constQuerySnapshot&rhs)
Checks lhs
and rhs
for equality.
booloperator==(constTransactionOptions&,constTransactionOptions&)
Compares two TransactionOptions
objects for equality.
booloperator==(constSnapshotMetadata&lhs,constSnapshotMetadata&rhs)
Checks lhs
and rhs
for equality.
booloperator==(constAggregateQuerySnapshot&lhs,constAggregateQuerySnapshot&rhs)
Checks lhs
and rhs
for equality.
booloperator==(constDocumentSnapshot&lhs,constDocumentSnapshot&rhs)
Checks lhs
and rhs
for equality.
booloperator==(constDocumentChange&lhs,constDocumentChange&rhs)
Checks lhs
and rhs
for equality.
booloperator==(constAggregateQuery&lhs,constAggregateQuery&rhs)
Checks lhs
and rhs
for equality.
booloperator==(constLoadBundleTaskProgress&lhs,constLoadBundleTaskProgress&rhs)
LoadBundleTaskProgress == comparison operator.
booloperator>(constGeoPoint&lhs,constGeoPoint&rhs)
Checks whether lhs
and rhs
are in descending order.
booloperator>=(constGeoPoint&lhs,constGeoPoint&rhs)
Checks whether lhs
and rhs
are in non-ascending order.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-26 UTC.