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

Pass-through "fetch" option for graphql-client #291

Open
dts opened this issue Jan 9, 2023 · 0 comments
Open

Pass-through "fetch" option for graphql-client #291

dts opened this issue Jan 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dts
Copy link

dts commented Jan 9, 2023

Your use case

I am building a nuxt/ionic app, and there's an interaction between the Capacitor HTTP plugin and the CrossFetch library inside graphql-client. The easiest way around this is to use the capacitor HTTP plugin directly (instead of through the default fetch/xhr shims), but there's no way to do this with this library.

The solution you'd like

I want to be able to pass through a custom Fetch implementation to the underlying GraphQLClient.

Possible alternatives

I can create an extra shim in between XHR and CrossFetch that gets inserted before CrossFetch gets started.

Additional information

No response

@dts dts added the enhancement New feature or request label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant