Skip to content

Commit e29c2c3

Browse files
authored
chore: Edited the query filter to remove .get() (#377)
1 parent 7b30935 commit e29c2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/main/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ async function queryAndFilter(db) {
587587
const citiesRef = db.collection('cities');
588588

589589
// Create a query against the collection
590-
const allCapitalsRes = await citiesRef.where('capital', '==', true).get();
590+
const allCapitalsRes = citiesRef.where('capital', '==', true);
591591
// [END firestore_query_filter_eq_boolean]
592592

593593
// [START firestore_query_filter_single_examples]

0 commit comments

Comments
 (0)