I'm working with Cloud Firestore and my app is location based. I want to present the user results according to their current location, start with the closest and continue as it gets further. I also of course want to paginate as there are many items in my database and I don't want to pull them all.
How can I order results by distance without reading all the documents, so I could limit the documents I get?