title: Is there a way to do pagination with firebase realtime database (vuejs)?
body: <p>I'm trying to paginate my data from firebase realtime database. </p>
  
  <p>Do I have to change to firestore ? Where all is explain in Google's doc (<a href="https://firebase.google.com/docs/firestore/query-data/query-cursors" rel="nofollow noreferrer">https://firebase.google.com/docs/firestore/query-data/query-cursors</a>) or it's also possible with rtdb ?</p>
  
  <p>Here is my code (i'm using vue js) : </p>
  
  <pre><code>loadConcerts ({commit}) {
        commit('setLoading', true)
        firebase.database().ref('concerts')
        .orderByChild('expires')
        .startAt(Date.now() / 1e3)
        .limitToFirst(10)
        .once('value')
        .then(data =&gt; {
          const concerts = []
          data.forEach(element =&gt; {
          concerts.push({
                id: element.key,
                title: element.val().title,
                day: element.val().day,
                ticketlink: element.val().ticketlink,
                description: element.val().descriptio
              })
          })
            commit('setLoadedConcerts', concerts)
            commit('setLoading', false)
          })
          .catch(
            (error) =&gt; {
              console.log(error)
              commit('setLoading', false)
            }
          )
      },
  
  I would like to add pagination after 10 results, or infinite scrolling.
  </code></pre>