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