With Automatic Persisted Queries#
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:
yarn install
yarn run start
# or
npm install
npm run start
This example contains:
- The
urqlbindings and a React app with a client set up insrc/App.jsx - The
persistedFetchExchangefrom@urql/exchange-persisted-fetchinsrc/App.jsx - A query for locations in
src/LocationsList.jsx