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
I have managed to work around this issue using the newly added -modelpackage flag so that it generates the enum into the same folder as my custom models
I added a custom enum type to types.json and use it in my graphql spec.
Expected Behaviour
gqlgen would use the custom type instead of generating enum into models_gen.go
Actual Behavior
enum code is generated into models_gen.go and a mismatch error is reported
Minimal graphql.schema and models to reproduce
graph.graphql:
types.json:
custom/foo.go:
The text was updated successfully, but these errors were encountered: