is the any way that throw an error by GraphQL\Error\Error
with no additional data except message.
the current return data is
{
"errors": [
{
"message": "Some Errors",
"extensions": {
"reason": "",
"category": "custom"
},
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"to the path"
],
"trace": [{},{},{},{}]
}
],
"data": {
"testQuery": null
}
}
it contains unnecessary data
but I want something like:
{
"errors": [
{
"message": "Some Errors",
"extensions": {
"reason": "",
"category": "custom"
},
],
"data": {
"testQuery": null
}
}