You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I’d like to work on this issue as my first open-source contribution. Is it still available? My initial idea is to improve the schema generator error so it explains that GraphQL object types cannot be used as input arguments and suggests using an input type instead.
I opened #369 for this. When an object, interface or union type is used as an argument or input field, schemagen now names the kind of type and suggests declaring an input type, for example: Invalid argument type: ContactMethod line: 4 column: 32 (ContactMethod is an object type, but arguments and input fields must be a scalar, enum, or input type; declare an input type to use here instead). Happy to adjust the wording on review.
Activity
niclox44 commentedon Nov 24, 2026
Hi! I’d like to work on this issue as my first open-source contribution. Is it still available? My initial idea is to improve the schema generator error so it explains that GraphQL object types cannot be used as input arguments and suggests using an input type instead.
Suggest an input type when schemagen finds an output type as an argument
DashRam64 commentedon Dec 3, 2026
I opened #369 for this. When an object, interface or union type is used as an argument or input field, schemagen now names the kind of type and suggests declaring an input type, for example:
Invalid argument type: ContactMethod line: 4 column: 32 (ContactMethod is an object type, but arguments and input fields must be a scalar, enum, or input type; declare an input type to use here instead). Happy to adjust the wording on review.