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
Setting defaultMapper works around another name collision with the default IResolversTypes and IResolversParentTypes. Normally I'd map the model types.
Expected behavior
Does not add the types prefix to the enum type in the input args type for the directive resolver.
Additional context
I don't actually need the directives so a skip directives option would work as well.
I may be able to get a hook to rename it as a workaround for now.
The text was updated successfully, but these errors were encountered:
Describe the bug
The generated directive arguments ignore enumPrefix = false. This results in the wrong type name when typesPrefix is set.
To Reproduce
https://codesandbox.io/s/pedantic-lalande-q0g1qr?file=/types.ts
Set enumPrefix = false and typesPrefix = I.
Define a directive with an input argument that is an enum and generate the resolvers.
My GraphQL operations:
None
My
codegen.yml
config file:Setting
defaultMapper
works around another name collision with the defaultIResolversTypes
andIResolversParentTypes
. Normally I'd map the model types.Expected behavior
Does not add the types prefix to the enum type in the input args type for the directive resolver.
Environment:
https://codesandbox.io/s/pedantic-lalande-q0g1qr?file=/types.ts
Additional context
I don't actually need the directives so a skip directives option would work as well.
I may be able to get a hook to rename it as a workaround for now.
The text was updated successfully, but these errors were encountered: