Ionic firebase pagination

Hi everyone, can someone help me this, first all english its not my native langague, so i can said something wrong, i’m try to make a chat, and from some reason i get only get from last 80 messages, one friend told me its limit from ionic and firebase, can someone tell me this? if its that true, and how i can make pagination with firebase using ionic?

Hi @ndblackandblue :wave:

Your friends claim is simply not true. Ionic has nothing to do with Firebase, they’re two completely different things. It can’t and doesn’t impose any limit on Firebase.

Check out how to limit the number of docs and do pagination with Firestore in their docs: https://firebase.google.com/docs/firestore/query-data/query-cursors

If using AngularFire, you can find some examples here: https://github.com/angular/angularfire2/blob/master/docs/firestore/querying-collections.md

Best,
Rodrigo