I am trying to implement multi query and pagination with firestore, but once I add < or > to the query the cursor not working.
A Firestore query can only have a single range condition.
From the documentation on queries:
You can combine
where()filters withorderBy()andlimit().However, if you have a filter with a range comparison (
<,<=,>,>=), your first ordering must be on the same field:Invalid: Range filter and first orderBy on different fields
citiesRef.where("population", ">", 100000).orderBy("country")