CollectionReference
A collection, mirroring the Android SDK's CollectionReference: a Query over its documents that can also add to it.
Properties
The underlying Firebase JS SDK object.
The underlying Firebase JS SDK object.
The document containing this collection, or null for a root collection.
Functions
Completes once the write is acknowledged, as on Android (addDocumentWithData returns the reference before that).
Adds a new document with an automatically generated id and data (a map of field values).
Adds a new document with an automatically generated id and data, a map of field values or a @Serializable class mapped by the format (see CollectionReference.add).
Not in the common API (the executor is Android-only); the dev.gitlive layer's Android listeners bind to this member.
Listens to the results and every change to them.
Listens to the results, also notifying listener of metadata changes when metadataChanges is INCLUDE.
Listens to the results with options.
Not in the common API (the executor is Android-only); the dev.gitlive layer's Android listeners bind to this member.
An AggregateQuery computing aggregateField and aggregateFields over the results.
The SDK's dataObjects flow; deprecated towards com.google.firebase.serialization.dataObjects.
A reference to a new document with an automatically generated id.
A reference to the document at documentPath, relative to this collection.
The JS SDK creates a new object per call, so queries are equal when they describe the same collection and constraints.
The query results and every change to them as a Flow, which fails if the listener fails.
The query with filter added, which may combine conditions with Filter.and and Filter.or.