Skip to content

chore: Edited the query filter to remove .get() #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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