Skip to content

How to properly pass an Enum to a schema argument? #1197

Answered by uncvrd
uncvrd asked this question in General
Discussion options

You must be logged in to vote

Sorry, I should have read the GraphQL docs a little more which state that if you pass an Enum through a variable, you should get the string version of it, so in this case I got the string of the enum by:

Status[Status.IN_REVIEW], which converts to "IN_REVIEW".

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by uncvrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant