You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/FIRESTORE.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -255,6 +255,23 @@ query
255
255
});
256
256
```
257
257
258
+
### [Collection Group Queries](https://firebase.google.com/docs/firestore/query-data/queries#collection-group-query): `collectionGroup.where()`
259
+
A collection group consists of all collections with the same ID. By default, queries retrieve results from a single collection in your database. Use a collection group query to retrieve documents from a collection group instead of from a single collection.
260
+
261
+
Note that this will require an *index* in your db, so make sure to `catch` any errors when invoking this method
262
+
and log out any error messages so you can easily copy-paste the required index into your browser URL bar.
263
+
264
+
```typescript
265
+
// "Gimme all cities with a population of at least a million"
0 commit comments