1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Paginating and passing other options with Paginate

    faunadbFaunaDB

    Paginate can be used with options to move forward or backward in the list of results. We can also limit or expand the number of results we get in a Page.

    Paginate(Match(Index("all_customers")))
    Paginate(Match(Index("all_customers")), { size: 2 })
    Paginate(
      Match(Index("all_customers")),
      {
        size: 2,
        after: Ref(Collection("customers"), "244075679455381001)
      }
    )