Skip to content

Send meaningful error message if a request is sent without a query #112

@abhiaiyer91

Description

@abhiaiyer91

Was having a hard time debugging why a curl to my GraphQL server was not going through.

Was hit with {"errors":[{"message":"Cannot read property 'definitions' of undefined"}]}

Turns out i was not sending a query in my post body. Can we throw an error if a request is sent to the server with no query?

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