feat: support nested pagination arguments in relay pagination
Our GraphQL server library ( https://doug-martin.github.io/nestjs-query/docs/graphql/paging/#relation-connections ) uses slightly different format for pagination args: instead of items(first: 2, after: "xyz"), we do items(paging: { first: 2, after: "xyz" }).
Currently relayPagination utility allows only for args to be set at the top-level.
Could we extend it to fit more use cases? In this PR, I'm keeping the exitsing behaviour, but also make it work with pagination args placed under the paging., pagination. or page. object.
🦋 Changeset detected
Latest commit: dec3cd1d25742c5cfbb4105a32b27d0137e352dc
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @urql/exchange-graphcache | Minor |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR