-
Notifications
You must be signed in to change notification settings - Fork 97
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
The parent selection or operation does not resolve to a valid schema type #340
Comments
Hi Dan, Thanks for using the plugin. Using the SDL you've shown I don't get an error. Please add a reproduction. Thanks. |
@jimkyndemeyer Hi! Thanks for the plugin! I also had this error after upgrading to version I downgraded to version |
@davoam hello! I'm trying to reproduce this one, could you please provide a minimal reproducible example? Or if it's not possible, provide any information as described in this comment #348 (comment)? |
@vepanimas I read your comment and solved the problem. Thanks! I have a script which generates GraphQL schema. When I run it, it uses some files to generate final schema. It complained that some instances are defined in final schema and in these files. For example,
I have added files which I use to generate final schema to Now everything works |
@davoam thank you for the info, that's very helpful! I'm working now on improving the user experience for the case when some types/fields are duplicated. It definitely shouldn't break such features as resolve and autocomplete, and the errors should be more meaningful. |
@dandv it should work better with graphql-modules in the 2.6.0 version, so I'm closing this now. If you encounter any problems, please feel free to report them, it will be very appreciated! |
Before you create the issue
Version and Environment Details
Operation system: Ubuntu 20
IDE name and version: WebStorm 2020.2 EAP, Build #WS-202.4357.21, built on May 26, 2020
Plugin version: 2.4.0
Steps to Reproduce / Link to Repo with Reproduction and Instructions
I use graphql-modules on the server, and in my web app I have a
.tsx
file with this queryOn the server, the schema looks like this:
I can work on a reproduction repo upon request.
The text was updated successfully, but these errors were encountered: