Paginating and passing other options with Paginate

Share this video with your friends

Send Tweet

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