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

graphiqlOptions should support being called as a function that is passed the request #418

Closed
NeoPhi opened this issue Jun 6, 2017 · 1 comment

Comments

@NeoPhi
Copy link
Contributor

NeoPhi commented Jun 6, 2017

We have a need to dynamically determine the graphiqlOptions that should be used on a per request. This would mirror the semantics of graphqlOptions supporting a function.

This approach could also be used to address #399 by examining the incoming Host header to dynamically generate the subscriptionsEndpoint and/or endpointURL.

@helfer
Copy link
Contributor

helfer commented Jun 9, 2017

@NeoPhi I think that's a great idea. Do you have time to make a PR that would allow both an object and a function as graphiqlOptions? 🙂

@helfer helfer closed this as completed Jun 28, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants