Skip to content

Commit

Permalink
chore: Edited the query filter to remove .get() (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta345 authored Nov 28, 2023
1 parent 7b30935 commit e29c2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firestore/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ async function queryAndFilter(db) {
const citiesRef = db.collection('cities');

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

// [START firestore_query_filter_single_examples]
Expand Down

0 comments on commit e29c2c3

Please sign in to comment.