Back to Urql

With Graphcache's Pagination

examples/with-graphcache-pagination/README.md

1.8.21.4 KB
Original Source

With Graphcache's Pagination

<p> <a href="https://stackblitz.com/github/urql-graphql/urql/tree/main/examples/with-graphcache-pagination"> </a> <a href="https://codesandbox.io/p/sandbox/github/urql-graphql/urql/tree/main/examples/with-graphcache-pagination"> </a> </p>

This example shows urql in use with @urql/exchange-graphcache's infinite pagination helpers to merge several pages of a Relay-compliant schema into an infinite list. This largely follows the "Pagination" section on the "Local Resolvers" docs page and uses the trygql.formidable.dev/graphql/relay-npm schema.

To run this example install dependencies and run the start script:

sh
yarn install
yarn run start
# or
npm install
npm run start

This example contains: