Package | Description |
---|---|
com.google.cloud.firestore |
Modifier and Type | Method and Description |
---|---|
CollectionReference |
DocumentReference.collection(String collectionPath)
Gets a CollectionReference instance that refers to the collection that is a child of this
document.
|
CollectionReference |
Firestore.collection(String path)
Gets a
CollectionReference that refers to the collection at the specified path. |
CollectionReference |
DocumentReference.getParent()
A reference to the Collection to which this DocumentReference belongs to.
|
Modifier and Type | Method and Description |
---|---|
Iterable<CollectionReference> |
DocumentReference.getCollections()
Deprecated.
Use `listCollections()`.
|
Iterable<CollectionReference> |
Firestore.getCollections()
Deprecated.
Use `listCollections()`.
|
Iterable<CollectionReference> |
DocumentReference.listCollections()
Fetches the subcollections that are direct children of this document.
|
Iterable<CollectionReference> |
Firestore.listCollections()
Fetches the root collections that are associated with this Firestore database.
|
Copyright © 2019 Google LLC. All rights reserved.