Open AydanGaite opened 2 years ago
Thank you @ka1to1 for sharing! I'm just labeling the issue by the Issue workflow progress. Would you be able to move it forward by sharing a reproduction or even better by creating a failing test?
Confirming that this still excists. import-types-preset are not respected.
FYI. After 30min looking i found the tests, the community plugins have been moved to https://github.com/dotansimha/graphql-code-generator-community/tree/main/packages/plugins/typescript/urql-graphcache
Issue workflow progress
Progress of the issue based on the Contributor Workflow
yarn generate
in the terminal. Please make sure the Codegen and plugins version underpackage.json
matches yours.Describe the bug
To Reproduce Steps to reproduce the behavior:
My GraphQL schema: N/A
My GraphQL operations: N/A
My
codegen.yml
config file:Expected behavior Generating
typescript-urql-graphcache
should generate types with the respected namespace (in this case schema) but instead it ignores it. For example, here is the output generated by another plugin. The namespace is respected (ie.Schema.Address
)Here is the output of
typescript-urql-graphcache
:In this case the namespace is not respected.
Environment:
@graphql-codegen/...
: