-
Notifications
You must be signed in to change notification settings - Fork 275
Closed
Description
Example from https://firebase.google.com/docs/firestore/query-data/queries#web-v8_4 is incorrect or misleading.
snippets-web/firestore/test.firestore.js
Lines 859 to 861 in 6d42e41
| citiesRef.where("state", "==", "CA"); | |
| citiesRef.where("population", "<", 100000); | |
| citiesRef.where("name", ">=", "San Francisco"); |
This example shows that you can chain query methods but it is incorrect. Query class is immutable, correct example will be
let citiesRef = firestore.collection('cities');
citiesRef = citiesRef.where("state", "==", "CA");
citiesRef = citiesRef.where("population", "<", 100000);
citiesRef = citiesRef.where("name", ">=", "San Francisco");Please check this main issue googleapis/nodejs-firestore#483
Metadata
Metadata
Assignees
Labels
No labels