Skip to content

How to apply directives on input object fields #1294

Answered by dariuszkuc
de55 asked this question in General
Discussion options

You must be logged in to vote

Hello 👋
In order to access the data fetcher you need to have schema coordinates and they are only available on the field (i.e. if you define an object it could be return from many different places during schema execution). Each directive environment has access to the raw code registry so while you won't get the convenient function to access the data fetcher, you still should be able to locate it in the registry (added in #1159).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by smyrick
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1293 on October 27, 2021 21:23.