Back to Urql

With Graphcache's Pagination

examples/with-graphcache-updates/README.md

1.8.21.5 KB
Original Source

With Graphcache's Pagination

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

This example shows urql in use with @urql/exchange-graphcache and demonstrates a manual cache update, as explained in the "Cache Updates" docs page. This example uses the trygql.formidable.dev/graphql/web-collections schema and builds on top of the with-refresh-auth example so that we can authenticate with the schema before creating links on it.

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: