Skip to content

Add the ability to access the context into the resolveReference method for the Federation plugin #341

Answered by hayes
moonflare asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, this should definitely be added. I think this might not have been possible when I first wrote this plugin, but just checked, and federation definitely passes context now. There won't be an args option, but the args should be (parent, context, info). I'll update the types, but the args should already be passed to your resolve method, just not in the type definitions yet.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@moonflare
Comment options

@hayes
Comment options

Answer selected by moonflare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants