You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this works (I get successfully auto-completion using Playground), the process is however very tedious as I have to extend every single generated InputType for every crud operation that uses this enum.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I understand that SQLite does not support Enums. Therefore I use just Strings.
However, I would like to have the auto-completion (Playground) and also the correct generated types (graphql-codegen) for my frontend react app.
My temporal solution is to define my enumTypes manually:
And override the corresponding fields on the generated inputTypes from nexus-prisma-plugin (crud operations):
While this works (I get successfully auto-completion using Playground), the process is however very tedious as I have to extend every single generated InputType for every crud operation that uses this enum.
Is their maybe a more simpler approach?
Beta Was this translation helpful? Give feedback.
All reactions