Skip to content

A schema MUST have a 'query' operation defined Error. But I have type Query in my schema. #458

@tintin10q

Description

@tintin10q

I have added my schema to a .graphql file in my main project directory. I now get this error:
image

This is very weird because I do have a type Query {} in my .graphql file with multiple queries in there. When I copied the Query type into an empty .graphql file and I changed all the return types to strings I did not get the error anymore.
To Reproduce
I don't really know how you could reproduce this I don't want really share my schema.

Expected behavior
I don't expect a 'A schema MUST have a 'query' operation defined' error to pop up when there is a type Query in the schema

Version and Environment Details
Operation system: Win 10
IDE name and version: Webstorm 2020.3.2
Plugin version: 2.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions