Slide 12
Slide 12 text
Perform powerful query functionality for
specifying which documents you want to
retrieve from a collection.
The where() method takes three
parameters: a field to filter on, a
comparison operation, and a value. The
comparison can be <, <=, ==, >, >=, or
array_contains. For iOS, Android, and
Java, the comparison operator is
explicitly named in the method.
Presented By: Otieno Rowland
val citiesRef = mFirebaseFirestone.collection("cities")
// More complex query types
citiesRef.whereEqualTo("state", "California");
citiesRef.whereLessThan("population", 100000);
citiesRef.whereGreaterThanOrEqualTo("name", "San Francisco")