CollectionReference
A CollectionReference
object can be used for adding documents, getting
document references, and querying for documents (using {@link (query:1)}).
§Type Parameters
§Properties
A string representing the path of the referenced collection (relative to the root of the database).
A reference to the containing DocumentReference
if this is a
subcollection. If this isn't a subcollection, the reference is null.
§Methods
Applies a custom data converter to this CollectionReference
, allowing you
to use your own custom model objects with Firestore. When you call addDoc with the returned CollectionReference
instance, the provided
converter will convert between Firestore data of type NewDbModelType
and
your custom type NewAppModelType
.
- Converts objects to and from Firestore.
A CollectionReference
that uses the provided converter.
Removes the current converter.
null
removes the current converter.
A CollectionReference<DocumentData, DocumentData>
that does not
use a converter.