Skip to content

Commit cc780b4

Browse files
authored
Clarify some query snippets
See: firebase#186
1 parent 9d474d9 commit cc780b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

firestore-next/test.firestore.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,13 +851,13 @@ describe("firestore", () => {
851851
const citiesRef = collection(db, "cities");
852852

853853
// [START example_filters]
854-
const q1 = query(citiesRef, where("state", "==", "CA"));
855-
const q2 = query(citiesRef, where("population", "<", 100000));
856-
const q3 = query(citiesRef, where("name", ">=", "San Francisco"));
854+
const stateQuery = query(citiesRef, where("state", "==", "CA"));
855+
const populationQuery = query(citiesRef, where("population", "<", 100000));
856+
const nameQuery = query(citiesRef, where("name", ">=", "San Francisco"));
857857
// [END example_filters]
858858

859859
// [START simple_query_not_equal]
860-
const q4 = query(citiesRef, where("capital", "!=", false));
860+
const notCapitalQuery = query(citiesRef, where("capital", "!=", false));
861861
// [END simple_query_not_equal]
862862
});
863863

0 commit comments

Comments
 (0)