Exceptions and Errors

When error occur in GraphQL, the server adds an errors entry in the response. Here is an example

{
    "errors": [
        {
            "message": "Wished price was not found by id: some-id",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": [
                "wishedPrice"
            ]
        }
    ]
}

You can read more about GraphQL errors in the official spec.