-
-
Notifications
You must be signed in to change notification settings - Fork 110
Allow generation of for case‐sensitive types #1308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What you can do today: split types with the same name into different .graphqls files and create separate build configurations with different output folders. In that way your file system will not complain about duplicate files. |
Sadly, I cannot do this because I also need the full graphql schema in one go |
Ok. |
I understand My argument still stands because this is supported by the spec, but it's understandable if you aren't looking to support everything that the spec supports |
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
This is a follow up for #651
As per the spec :
While I agree with this comment :
#651 (comment)
The Graphql spec allows it and in my humble opinion the plugin should follow the spec
Additionally, as this is allowed, it is seen in the wild and changing existing production schemas is not always possible
Currently, what the plugin produces is this :
Example type definition to replicate the problem :
Describe the solution you'd like
As this is mostly limited by case sensitive filesystems, we can add an option to customize the package of a given type
For example, in addition to
packageName
, we can haveDescribe alternatives you've considered
A combination of #1307 #1297 might work where the user will use #1307 to define a custom type for one the duplicates in a different package and them use #1297 to skip the generation
The text was updated successfully, but these errors were encountered: