In order to calculate next page value, we need to order by and select name@en. Basically this should result into something like this:
select(_page: [name@en], *)
We need to separate page key, from other selected columns. If we expand *, we get:
select(_page: [name@en], name, country)
And the data would look like:
{
"_page": [
"Vilnius", # string value of name@en
],
"name": "Vilnius", # implicit form of text type
"country": {
"name": {
"en": "Lithuania" # explicit form of text
}
}
}
Add possibility to use
string
part oftext
type as a page key. For example:User should be able to do:
In this query, pagination will be done using
name@en
as page key, for external backends, and this internally should result in fallowing data:In order to calculate next page value, we need to order by and select
name@en
. Basically this should result into something like this:We need to separate page key, from other selected columns. If we expand
*
, we get:And the data would look like:
Related