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

feat: support multiple graphql endpoints #98

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

Conversation

ypresto
Copy link

@ypresto ypresto commented Jun 17, 2024

Closes #63

When the GraphQL endpoint is explicitly specified using graphql.link('/someGraphqlEndpoint'), the URL is already defined in the handler's endpoint private property. This PR leverages this to support multiple GraphQL endpoints. Therefore, the graphqlUrl option is not necessary when using the graphql.link(...) form.

@ypresto ypresto requested a review from valendres as a code owner June 17, 2024 11:48
@ypresto ypresto force-pushed the feature/multiple-graphql-endpoints branch from be1fb79 to ecc5617 Compare June 17, 2024 23:02
@pjean
Copy link

pjean commented Jul 12, 2024

Hi, I'm really interested by this missing future too which is currently a blocker to continue our tests migration.

@ypresto
Copy link
Author

ypresto commented Jul 13, 2024

@pjean Use below workaround until this PR is merged.
#63 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow configuring multiple graphqlUrl endpoints
2 participants