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

use body.extensions

Open Rowadz opened this issue 2 years ago • 0 comments

when sending an extensions object with a get request the package expects an extensions in the query params, but when doing a post request it expects an object called extension in the payload

I believe this is a bug.

https://github.com/contra/graphql-helix/blob/f8e9b1acde278d3526bb43a6d573383d037e4993/packages/core/lib/get-graphql-parameters.ts#L12-L21

I opened this PR to fix it ツ

Rowadz avatar Apr 05 '23 10:04 Rowadz