Skip to content

Commit

Permalink
Merge pull request #1495 from Niennienzz/improve-apq-doc
Browse files Browse the repository at this point in the history
Update apq.md
  • Loading branch information
lwc authored Mar 31, 2021
2 parents 463deba + 8c3e64e commit 35b80a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/reference/apq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35b80a7

Please sign in to comment.