From 8c3e64e1965081ff07bbe9353dd9246817232887 Mon Sep 17 00:00:00 2001 From: Joe Zhou Date: Sun, 21 Mar 2021 01:26:48 -0400 Subject: [PATCH] Improve APQ documentation --- docs/content/reference/apq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/reference/apq.md b/docs/content/reference/apq.md index 32df5effc0..2be30fa242 100644 --- a/docs/content/reference/apq.md +++ b/docs/content/reference/apq.md @@ -16,8 +16,8 @@ to register query hash with original query on a server. In order to enable Automatic Persisted Queries you need to change your client. For more information see [Automatic Persisted Queries Link](https://github.com/apollographql/apollo-link-persisted-queries) documentation. -For the server you need to implement `PersistedQueryCache` interface and pass instance to -`handler.EnablePersistedQueryCache` option. +For the server you need to implement the `graphql.Cache` interface and pass an instance to +the `extension.AutomaticPersistedQuery` type. Make sure the extension is applied to your GraphQL handler. See example using [go-redis](https://github.com/go-redis/redis) package below: ```go