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

Propagate graphql extensions

Open munknex opened this issue 3 years ago • 5 comments
trafficstars

I use graphql-mesh to filter schema of my graphql server.

I'd like to propagate extensions from original response through mesh.

For example I send transaction-id with every response.

Original response

{
  "data": {
    "hello": "world"
  },
  "extensions": {
    "transactionId": "c2338f77-df6d-41a5-8831-e3092cd7c521"
  }
}

After graphql-mesh:

{
  "data": {"hello": "world"}
}

munknex avatar Jul 28 '22 10:07 munknex

Currently it is not possible.

ardatan avatar Jul 28 '22 17:07 ardatan

Any plans to implement? Any suggestions how patch should look like?

munknex avatar Jul 29 '22 04:07 munknex

@ardatan any plan for this??

mnlbox avatar Oct 28 '23 04:10 mnlbox

No plans for this before v1.

ardatan avatar Oct 28 '23 14:10 ardatan

Thanks, Can I achieve this by creating a custom plugin or it should be added to core level of @graphql-mesh/graphql handler package?

mnlbox avatar Nov 02 '23 05:11 mnlbox