paginate()
Get the first page of size Set values.
Description
The paginate()
method gets the first page of size Set values. When
the Set has more than size values, a pagination cursor is included
at the end of the page.
Use the static Set.paginate()
method to access
subsequent pages.
Examples
Apply a page size of two to the Set of all Product documents:
{
data: [
{
id: "101",
coll: Letter,
ts: Time("2022-11-18T21:23:43.310Z"),
letter: "A",
extra: "First"
},
{
id: "102",
coll: Letter,
ts: Time("2022-11-18T21:23:43.310Z"),
letter: "B",
extra: "second"
}
],
after: "hs6DxoJmTGV0dGVygwAAZipudWxsKoJjYWxsgwAAZipudWxsKoMAAGYqbnVsbCqAgEoAAAAAAAAAZgQA9cGCGmN3998aGBSNAA=="
}
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!