public class CollectionReference extends Query
A CollectionReference
can be used for adding documents, getting document
references, and querying for documents (using the methods inherited from
Query
).
Subclassing Note: Cloud Firestore classes are not meant to be subclassed except for use in test mocks. Subclassing is not supported in production code and new SDK releases may break code that does so.
Public Method Summary
Task<DocumentReference> | |
DocumentReference |
document()
Returns a
DocumentReference pointing to a new document with an
auto-generated ID within this collection.
|
DocumentReference | |
String |
getId()
|
DocumentReference |
getParent()
Gets a
DocumentReference to the document that contains this
collection.
|
String |
getPath()
Gets the path of this collection (relative to the root of the database) as a
slash-separated string.
|