JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

type X is not present when resolving type Y #488

Closed mehhras closed 3 years ago

mehhras commented 3 years ago

Hello guys,

I use Intellij idea version 2021.2 and js graphql intellij plugin.

I develop a Spring boot project and this is my graphql structure in the resources.

image

This is my .graphqlconfig

image

Now, when I start my application I face with this problem:

graphql.schema.idl.errors.SchemaProblem: errors=[The field type 'LoginResponse' is not present when resolving type 'Mutation' [@1:1], The field input type 'LoginRequest' is not present when resolving type 'Mutation' [@1:1], The field type 'StudentDto' is not present when resolving type 'Query' [@2:1]]

and there is no error in graphql tab.

image

Thank you in advance.

jimkyndemeyer commented 3 years ago

Hi mehhras,

Thanks for using the plugin.

The plugin doesn't know about the server framework that you're using to implement your GraphQL endpoint, meaning that it can't tell you whether there's a runtime issue there. So in your case it looks like the plugin has done schema discovery as you'd expect (5 schema types), but your GraphQL server framework doesn't agree that you have a working GraphQL endpoint.

Please consult the docs on the framework you're using to resolve the problem. I'm closing this issue as it doesn't appear to be actionable for us.

Best regards, Jim.