Skip to content

Commit

Permalink
Clarify some query snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern committed Jun 17, 2021
1 parent 798957f commit 35c6eca
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1019,13 +1019,13 @@ public void simpleQueries() {
// [END simple_query_capital]

// [START example_filters]
citiesRef.whereEqualTo("state", "CA");
citiesRef.whereLessThan("population", 100000);
citiesRef.whereGreaterThanOrEqualTo("name", "San Francisco");
Query stateQuery = citiesRef.whereEqualTo("state", "CA");
Query populationQuery = citiesRef.whereLessThan("population", 100000);
Query nameQuery = citiesRef.whereGreaterThanOrEqualTo("name", "San Francisco");
// [END example_filters]

// [START simple_query_not_equal]
citiesRef.whereNotEqualTo("capital", false);
Query notCapitalQuery = citiesRef.whereNotEqualTo("capital", false);
// [END simple_query_not_equal]
}

Expand Down

0 comments on commit 35c6eca

Please sign in to comment.