Passing additional context to updaters #3774
Unanswered
ethanjweiner
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have the following use case: I update Entity A via a mutation executor, and need to invalidate certain keys on unrelated Entity B. I need to pass an identifier for Entity B to the mutation context to be able to invalidate it from an updater.
I've tried passing an additional variable to the mutation (supported since this PR), but most GraphQL server implementations will reject an additional variable if it's not used actually used by the underlying operation. It also doesn't appear that updaters can access custom
OperationContext
passed toexecuteMutation
.Am I missing something obvious here?
Beta Was this translation helpful? Give feedback.
All reactions