Readonly
id: stringThe identifier of the collection.
Readonly
parent: DocumentReference<DocumentData> | nullA reference to the containing Document if this is a subcollection, else null.
Readonly
path: stringA string representing the path of the referenced collection (relative to the root of the database).
Add a new document to this collection with the specified data, assigning it a document ID automatically.
A Promise resolved with a DocumentReference
pointing to the
newly created document after it has been written to the backend.
An Object containing the data for the new document.
Get a DocumentReference
for the document within the collection at the
specified path. If documentPath
is not specified, an automatically-generated
unique ID will be used as the document ID.
The DocumentReference
instance.
Optional
documentPath: stringA slash-separated path to a document.
Generated using TypeDoc
A
CollectionReference
object can be used for adding documents, getting document references, and querying for documents (using the methods inherited fromQuery
).