This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
Can't add custom resolver to enum #852
Unanswered
sapinheiro
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Resolvers are only used to resolve values for responses, never for requests. If you have some custom field logic you need to apply to resolve certain values on input objects then you'll have to execute that manually. |
Beta Was this translation helpful? Give feedback.
0 replies
-
That's not quite what I mean. I want to be able to use the enum as an input type, but I also want to be able to resolve values for responses. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems like the scenario I'm outlining isn't possible
I currently have (and this works!)
But I also want to be able to use my enums as an input for other mutations and inputs (can't get this to work)
It doesn't seem to be possible to use a pure graphql java enum and have extra values/custom resolvers. Is that correct?
Beta Was this translation helpful? Give feedback.
All reactions