[FR] GraphQL: Return pagination information in query results #4847
In CraftQL, we can include a request for the total count and other pagination information along with our main query. The query format looks like this:
At the very least, I can use totalCount plus the limit & current offset params to build a pagination component, but without totalCount I'm kind of stuck. I'm wondering if there's an equivalent in the new Craft GraphQL implementation or plans to add a similar feature.
Ah, that's why I noted CraftQL didn't support cursors or passing either...…
On Wed, Aug 28, 2019, 23:31 Andris Sevcenko ***@***.***> wrote: @daltonrooney <https://github.com/daltonrooney> right, so the connection pattern was dropped because the whole edge pagination model relies on paging by cursor which is something that Craft does not support currently. I'll look into adding totalCount for relational fields. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#4847?email_source=notifications&email_token=AAB4RCNOT5VFNV5JDE3WYO3QG5UN5A5CNFSM4IR5VR6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NM6NA#issuecomment-526044980>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAB4RCM5L3SUE6NN2RGEKKDQG5UN5ANCNFSM4IR5VR6A> .