Query a Firestore collection with a cursor start at field filter

Query a Firestore collection with a cursor start at field filter

Code sample

Go

query := client.Collection("cities").OrderBy("population", firestore.Asc).StartAt(1000000)

Java

Query query = cities.orderBy("population").startAt(4921000L);

Node.js

const startAtRes = await db.collection('cities')
  .orderBy('population')
  .startAt(1000000)
  .get();

Python

cities_ref = db.collection(u'cities')
query_start_at = cities_ref.order_by(u'population').start_at({
    u'population': 1000000
})