1×
Become a member
to unlock all features

Create egghead account to access 1,000+ tutorials and resources from expert developers.

Create account
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)
      }
    )