byme8 / ZeroQL

C# GraphQL client with Linq-like syntax
MIT License
278 stars 13 forks source link

support extensions #8

Closed omurphy-repay closed 2 years ago

omurphy-repay commented 2 years ago

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.

byme8 commented 2 years ago

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 commented 2 years ago

Checkout v2.0.0