Skip to content

Commit 273ad48

Browse files
author
Michael Lehenbauer
committed
Hide Collection Group queries from public API until backend support is ready.
1 parent 55246a2 commit 273ad48

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

firebase-firestore/CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
- [fixed] Fixed calculation of SQLite database size on Android 9 Pie devices.
66
Previous method could be off by a few MBs on these devices, potentially
77
delaying garbage collection.
8-
- [feature] You can now query across all collections in your database with a
9-
given collection ID using the `FirebaseFirestore.collectionGroup()` method.
108

119
# 18.0.1
1210
- [fixed] Fixed an issue where Firestore would crash if handling write batches

firebase-firestore/src/main/java/com/google/firebase/firestore/FirebaseFirestore.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ public DocumentReference document(@NonNull String documentPath) {
235235
return DocumentReference.forPath(ResourcePath.fromString(documentPath), this);
236236
}
237237

238+
// TODO(b/116617988): Expose API publicly once backend support is ready (and add to CHANGELOG.md).
238239
/**
239240
* Creates and returns a new @link{Query} that includes all documents in the database that are
240241
* contained in a collection or subcollection with the given @code{collectionId}.
@@ -244,8 +245,8 @@ public DocumentReference document(@NonNull String documentPath) {
244245
* @return The created Query.
245246
*/
246247
@NonNull
247-
@PublicApi
248-
public Query collectionGroup(@NonNull String collectionId) {
248+
//@PublicApi
249+
/* public */ Query collectionGroup(@NonNull String collectionId) {
249250
checkNotNull(collectionId, "Provided collection ID must not be null.");
250251
if (collectionId.contains("/")) {
251252
throw new IllegalArgumentException(

0 commit comments

Comments
 (0)