1

I want to get documents from the firestore in order of date and use their data into recycleview but to have limit to 10 documents so when I get to the 10th view on the recycle I will load another 10 documents from firestore which their data will appear in the recycle, instead of getting all documents at one time, is there a way to do so or a method built in firestore?

Zoe
  • 27,060
  • 21
  • 118
  • 148
  • Hi @Shimshon Polak, welcome to StackOverflow. Please take the time to add the necessary punctuation and capitalization to your question. A question that is easy to read will more likely get a good answer. You might want to take a look at the guidelines : https://stackoverflow.com/help/how-to-ask – JM Lord Feb 28 '19 at 16:45
  • You can also check **[this](https://stackoverflow.com/questions/50741958/how-to-paginate-firestore-with-android)** out. – Alex Mamo Feb 28 '19 at 16:58

1 Answers1

1

It sounds like you're talking about paging query results, which Firestore does support.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441