Skip to content
Discussion options

You must be logged in to vote

It seems you are using directive validateAuthInput for input types not fields. So it should be something like INPUT_OBJECT. And this error seems related to GraphQLJS parser that says there is no identifier like INPUT_OBJECT_FIELD.

Other than that, I'd use scalars for this kind of validation instead of directives which would be waay easier to implement and maintain.

Replies: 4 comments 1 reply

Comment options

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

You must be logged in to vote
1 reply
@ardatan
Comment options

Comment options

You must be logged in to vote
0 replies
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
Category
Q&A
Labels
None yet
3 participants