graphql-code-generator
graphql-code-generator copied to clipboard
Non-primitive types are duplicated in the config schema
Which packages are impacted by your issue?
No response
Describe the bug
There's an issue on the website with the generated config schema for properties with a non-primitive type, definitions will be duplicated as such: ScalarsMap, ScalarsMap_1, ScalarsMap_2, etc...
Additionally to that, I don't know if this is related, but examples are missing when the type is a duplicated definition (or just a non-primitive type?).
Your Example Website or App
https://the-guild.dev/graphql/codegen/plugins/typescript/typescript#scalars
Steps to Reproduce the Bug or Issue
-
typescript/typescript#scalars -
typescript/typescript#namingconvention -
typescript/typescript-operations#scalars -
typescript/typescript-operations#namingconvention -
typescript/typescript-nhost#scalars -
c-sharp/c-sharp-operations#scalars -
c-sharp/c-sharp-operations#namingconvention -
typescript/typescript-resolvers#scalars -
typescript/typescript-resolvers#namingconvention -
typescript/typescript-document-nodes#scalars -
typescript/typescript-document-nodes#namingconvention
Screenshot:

Expected behavior
Screenshots or Videos
No response
Platform
N/A, related to the website.
Codegen Config File
No response
Additional context
No response
Agree with @charpeni here, I am missing an example of the scalars usage.
Yes I want this one resolved!