ZeroQL icon indicating copy to clipboard operation
ZeroQL copied to clipboard

support extensions

Open omurphy-repay opened this issue 3 years ago • 2 comments

A GraphQL server reponds to: {"query": "query { ping }"} with:

{ "data": { "ping": "pong" },
  "extensions": { "requestId": "488baa5c-be04-49ac-957f-ba739096b229" }
}

When sending the same query request to that server using ZeroQL, the response is:

{
    "query": "query { ping}",
    "data": { "ping": "pong"},
    "errors": null
}

The extensions key is missing from the response, making ZeroQL unsuitable for some integrations.

omurphy-repay avatar Sep 25 '22 16:09 omurphy-repay

What graphql server do you use? I have been playing around with HotChocolate and could not figure out how to put some values into the extensions field to test the fix.

byme8 avatar Sep 26 '22 18:09 byme8

Checkout v2.0.0

byme8 avatar Oct 09 '22 15:10 byme8