-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Extending schema with input which got suppressed by disableDefaultMutations does not work #523
Comments
The reason you're getting this is because we're creating the types ahead of time even though they're not used. This has turned out to be a bad practice, and we've tried to move away from it in many places but cannot do so for this in the V4 chain without it being a breaking change (I think). Here's where the types are defined: graphile-engine/packages/graphile-build-pg/src/plugins/PgTablesPlugin.js Lines 233 to 304 in 2335d6e
Note these types are not only used for the default CRUD mutations, but also as inputs for the various PostgreSQL functions you can create, so we cannot simply disable them if However, all is not lost. If you're certain that you don't need any of these types you can supply alternative inflectors for them using |
A different, if not better, workaround than renaming the input types would be to |
I'm closing this issue because it is not a bug, these type names should be reserved for function and mutation inputs. |
Hello,
I am using "disableDefaultMutations: true" in order to write the mutations by myself. When I then extend the schema with an input type with the same name as one which would have been generated automatically, I get at an error message that this type is already defined, although it is definitely not in the final schema. Is this intended? Or how can this be circumvented?
The text was updated successfully, but these errors were encountered: