What is the purpose of registerEnumType if enums are already working without it ?
#1336
-
|
The docs recommend using So I wonder what is the purpose of Or was it working because apollo somehow resolves things behind the scenes ? |
Beta Was this translation helpful? Give feedback.
Answered by
MichalLytek
Aug 27, 2022
Replies: 1 comment 2 replies
-
|
Without |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Bradzer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without
registerEnumType, the generated GQL type would be String or Float (depending on the enum type), rather than the ENUM we are aiming for.https://typegraphql.com/docs/enums.html#using-enum