I am building a C# ASP.net core web application which connects to mongodb. My aim is to get data from mongodb in form of pages, for example if I have 100 documents of a certain collection I would like to get 10 documents after ID=X and 10 documents before ID=X. How can this be done?
My main problem is I am expecting the collection will hold hundreds of records, and I don't want the client to wait for so long when fetching the data, so I want data is fetched while scrolling down from client side.
Aucun commentaire:
Enregistrer un commentaire