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
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
-
Hi so I'm using
graphql-constraint-directive
to deal with fields that enum values with dashes.
for example:
and I want this field to map to the typescript type:
testFieldType: 'test-1' | 'test-2' | 'test-3'
currently, codegen resolved the type to string and ignored the directive.
how can I achieve this using the fact that I'm using the typescript plugin?
Beta Was this translation helpful? Give feedback.
All reactions