diff --git a/docs/getting-started/movie-quotes-app-tutorial.md b/docs/getting-started/movie-quotes-app-tutorial.md index fa55de6cc3..60f828753f 100644 --- a/docs/getting-started/movie-quotes-app-tutorial.md +++ b/docs/getting-started/movie-quotes-app-tutorial.md @@ -539,11 +539,12 @@ create a new URQL client: ```javascript // src/lib/quotes-api.js -import { createClient } from '@urql/core'; +import { createClient, cacheExchange, fetchExchange } from '@urql/core'; const graphqlClient = createClient({ url: import.meta.env.PUBLIC_GRAPHQL_API_ENDPOINT, - requestPolicy: "network-only" + requestPolicy: "network-only", + exchanges: [cacheExchange, fetchExchange] }); ```