Skip to content

InvalidSyntax error on executing this project #10

@KushagraBindal

Description

@KushagraBindal

While trying to execute the project using below query

{
book(id: "123") {
title
authors
publisher
}
}

I am getting below error.

{
"data": null,
"errors": [
{
"message": "Invalid Syntax",
"locations": [
{
"line": 1,
"column": 1,
"sourceName": null
}
],
"errorType": "InvalidSyntax",
"path": null,
"extensions": null
}
],
"dataPresent": false,
"extensions": null
}

On server side I am getting below error

2021-05-12 18:11:10.346 WARN 16964 --- [o-auto-1-exec-5] graphql.GraphQL : Query failed to parse : '{"operationName":null,"variables":{},"query":"{\n book(id: "123") {\n title\n authors\n publisher\n }\n}\n"}'

Please help in understanding the root cause of this problem and how to fix the same.

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