Back to Urql

With Automatic Persisted Queries

examples/with-apq/README.md

1.8.21.4 KB
Original Source

With Automatic Persisted Queries

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

This example shows urql in use with @urql/exchange-persisted-fetch's persistedFetchExchange to support Automatic Persisted Queries. This largely follows the "Persisted Queries" docs page and uses the trygql.formidable.dev/graphql/apq-weather 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: