The parent selection or operation does not resolve to a valid schema type
See original GitHub issueBefore you create the issue
- Please search the existing issues at https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/issues?q=sort%3Aupdated-desc before opening a new issue.
- Read the FAQ at https://github.com/jimkyndemeyer/js-graphql-intellij-plugin#faq - no FAQ there
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 query
gql`
query($id: ID!) {
product(id: $ID) {
id
}
}
`
On the server, the schema looks like this:
export const ProductModule = new GraphQLModule({
imports: [
AuthModule,
],
typeDefs: gql`
scalar DateTime
input ProductInput {
...
}
"Alias: Item"
type Product {
id: ID!
"Alias: title"
name: String!
...
}
type Query {
"Find product by id"
product(id: ID!): Product
...
}
I can work on a reproduction repo upon request.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6
Top Results From Across the Web
The parent selection or operation does not resolve to a valid ...
I have a script which generates GraphQL schema. When I run it, it uses some files to generate final schema. It complained that...
Read more >GraphQL queries showing error in the .graphQl file
@DanielRearden Unknown field : The parent selection or operation does not resolve to a valid schema type. – Jigsaw. Aug 27, 2019 at...
Read more >GraphQL schema basics - Apollo GraphQL Docs
Your GraphQL server uses a schema to describe the shape of your available data. This schema defines a hierarchy of types with fields...
Read more >Developer guide · JS GraphQL IntelliJ Plugin
This developer guide covers how to setup your project to get the most out of the GraphQL language tooling in this plugin.
Read more >Featured Plugin: JS GraphQL | The WebStorm Blog
The plugin will check that all the types you've used are defined somewhere in the file, and it will show an error message...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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!