graphql-code-generator icon indicating copy to clipboard operation
graphql-code-generator copied to clipboard

Non-primitive types are duplicated in the config schema

Open charpeni opened this issue 2 years ago • 2 comments

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

Screenshot: Screenshot 2023-02-24 at 3 20 35 PM

Expected behavior

Screenshot 2023-02-24 at 3 46 11 PM

Screenshots or Videos

No response

Platform

N/A, related to the website.

Codegen Config File

No response

Additional context

No response

charpeni avatar Feb 24 '23 20:02 charpeni

Agree with @charpeni here, I am missing an example of the scalars usage.

riimako avatar Mar 14 '23 22:03 riimako

Yes I want this one resolved!

PelicanQ avatar Aug 01 '24 14:08 PelicanQ