How to use TypeDirective
s?
#1444
Unanswered
asimpleidea
asked this question in
Q&A
Replies: 2 comments
-
Type directives are used to add metadata on the schema itself, it can be used to communicate some metadata on a supergraph for instance1. Here is the pull request where you'll be able to get more context on this: #1308 Footnotes |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, yes I know how to use it theoretically, my question was more on how to use it async-graphql as I couldn't make it work, the function I was creating would never execute. I will check the PR out and let you know if it works and mark your reply as answered in that case. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone!
Does anybody know how to use type directives? The documentation is not very helpful on this...
I currently have the following:
And my object
The
testDirective
function is never executed, am I doing something wrong? Also, is there any way we can get the value of a field inside the function serving as a directive? Thank you!!Beta Was this translation helpful? Give feedback.
All reactions