-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
Adding a computed property with a non-primitive/non-scalar return type breaks the schema when stitching #4956
Comments
Any points/hints to where I can look in the code to figure out a solution @ardatan ? |
We've encountered the same challenge. This would help us as well |
You have to send |
I do not understand what you mean by having to "send name as key as well", care to elaborate? |
Sorry for the late response!| |
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
Attempting to add a computed property with a non-scalar return type breaks the schema when stitching.
One subschema defines the following type:
And the other subschema defines the extension of the User-type:
When introspecting the schema, or running
assertValidSchema
from thegraphql
-package, an error is thrown:Error: Type ComplexType must define one or more fields.
To Reproduce
Repository has instructions in readme on how to reproduce.
https://github.com/sondremare/graphql-tools-stitch-reproduction
Expected behaviour
I expect a list of users where the field
isSomeComplexType
is resolvableEnvironment:
@graphql-tools/stitch": "^8.7.34
,@graphql-tools/stitching-directives": "^2.3.24
,Additional context
The text was updated successfully, but these errors were encountered: