Skip to content

What is the purpose of registerEnumType if enums are already working without it ? #1336

Answered by MichalLytek
Bradzer asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Bradzer
Comment options

@Bradzer
Comment options

Answer selected by Bradzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants