Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variadic RequestOption to Query and Mutate #47

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

iheanyi
Copy link

@iheanyi iheanyi commented Oct 9, 2019

Fixes #28.

I saw various solutions in #28, especially this one: #28 (comment). 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
Copy link
Author

iheanyi commented Nov 19, 2019

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

@superbeeny
Copy link

bump

@andig
Copy link

andig commented Jul 25, 2021

Also see #73

alexandear pushed a commit to alexandear/graphql that referenced this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Ability to add custom headers to the request
3 participants