Are GraphQL Argument Directives supported? #1043
Unanswered
jonnydgreen
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Of course it is, see the examples: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking to create the following schema using
type-graphql
:I had an idea that the directive could be defined with the following class:
But am unable to get it to work (note, the astNode on the argument is undefined). I found the following which suggests that directives on arguments isn't yet supported?
@Directive
decorator #369 (comment)But I wasn't 100% so wanted to double check! :)
If not, I wondered if this is planned to be supported and if not, whether we could discuss any alternative approaches I have also considered?
Beta Was this translation helpful? Give feedback.
All reactions