graphql
graphql copied to clipboard
Add variadic RequestOption to Query and Mutate
Fixes https://github.com/shurcooL/graphql/issues/28.
I saw various solutions in https://github.com/shurcooL/graphql/issues/28, especially this one: https://github.com/shurcooL/graphql/issues/28#issuecomment-485226864. I decided to take the variadic options approach because:
- It's backwards compatible
- Easy to build on top of and set other nice options that users may want to use.
I've gone ahead and included a WithRequestHeader
option that users will most likely want.
@dmitshur Wanted to follow-up on this, any chance this can get a lookover?
bump
Also see https://github.com/shurcooL/graphql/pull/73