Handle APQ creation errors #1888
wedneyyuri
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are planning to create APQ during build time, shipping only the hash of the query to our client but there's no way no way to know if the APQ was not saved.
gqlgen/graphql/handler/extension/apq.go
Lines 85 to 89 in 27a2b21
The better option would be to return error in case of cache failure, if this error must be ignored it can be done when implementing the interface graphql.Cache:
gqlgen/graphql/cache.go
Lines 6 to 12 in 27a2b21
Beta Was this translation helpful? Give feedback.
All reactions