graphql-tools icon indicating copy to clipboard operation
graphql-tools copied to clipboard

enhance(executor-http): details in extensions for errors

Open ardatan opened this issue 1 year ago • 4 comments

Details in the extensions when an error occurs;

{
  "request": {
    "endpoint": "https://api.example.com/graphql",
    "method": "POST",
    "body": {
      "query": "query { hello }"
    }
  },
  "http": {
    "status": 500,
    "statusText": "Internal Server Error",
    "headers": {
      "content-type": "application/json"
    }
  },
  "responseBody": {
    "errors": [
      {
        "message": "Internal Server Error"
      }
    ]
  }
}

ardatan avatar May 27 '24 11:05 ardatan