An example Firestore query with an invalid range

An example Firestore query with an invalid range

Code sample

Go

query := cities.Where("state", ">=", "CA").Where("population", ">", 1000000)

Java

Query invalidRangeQuery =
    cities.whereGreaterThanOrEqualTo("state", "CA").whereGreaterThan("population", 100000);

Node.js

citiesRef.where('state', '>=', 'CA').where('population', '>', 1000000);

Python

cities_ref = db.collection(u'cities')
cities_ref.where(
    u'state', u'>=', u'CA').where(u'population', u'>=', 1000000)