graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Add variadic RequestOption to Query and Mutate

Open iheanyi opened this issue 5 years ago • 3 comments

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:

  1. It's backwards compatible
  2. 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.

iheanyi avatar Oct 09 '19 19:10 iheanyi

@dmitshur Wanted to follow-up on this, any chance this can get a lookover?

iheanyi avatar Nov 19 '19 21:11 iheanyi

bump

superbeeny avatar Jun 24 '20 17:06 superbeeny

Also see https://github.com/shurcooL/graphql/pull/73

andig avatar Jul 25 '21 16:07 andig