I'm developing a Flutter
app using Firebase
and Cloud Firestore
.
In Firestore
I have a collections of Users.
I want to perform a query who give me a list of Users with documentId in a range.
Example
My database:
> Users --> docId1 --> {name: "Domenico"}
> --> docId2 --> {name: "Antonio"}
> --> docId3 --> {name: "Maria"}
My desidered query is something like:
Select name from Users
where documentId in (docId2, docId3)
who gives me ["Antonio", "Maria"].
On documentation I've found how to filter by a document key but not a collection by a range of ducumentId.
Can you help me to perform this query or to understand if I'm doing something wrong?
Thank you.