Cloud Firestore


// Create a reference to the cities collection
var citiesRef = db.collection("cities");

// Create a query against the collection.
var query = citiesRef.where("state", "==", "CA");

// Returns all the capital cities:
var query = citiesRef.where("capital", "==", true);

Online Resources