Replies: 1 comment
-
|
@timkelty found this here through the roadmap and thought this is a good place to mention the APQ extension here. from the apollo graphql docs:
In our setup we use urql-graphql that comes with an APQ client extension, so unpersisted queries require two calls at first:
The same query would then only call:
This is then cachable just as any other standard I would say that this is probably the best way to add cachable GraphQL queries, since it does not add any custom cache key logic and some client-side libraries already support APQ along with GET requests. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
GraphQL request are POST, and thus not inherently cacheable on the HTTP-level. That said, GQL requests could include a unique hash that Cloud could potentially use as a cache key.
Beta Was this translation helpful? Give feedback.
All reactions