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

Custom js support #46

Open
aleGuardiola opened this issue May 14, 2020 · 3 comments
Open

Custom js support #46

aleGuardiola opened this issue May 14, 2020 · 3 comments

Comments

@aleGuardiola
Copy link

There is a lot of issues already that will need to modify the javascript of the library. Some of them are to generic for example there is any standard subscription protocol for graphql at this moment. So allowing some javascript configuration we can choose the fetch for subscriptios for example.

@josephwoodward
Copy link
Owner

I agree, this is something I considered as part of the previous release. Which files would be helpful to be able to modify? Or perhaps choose to provide your own one?

@aleGuardiola
Copy link
Author

Honestly I am not sure, let me check again the current implementation and I can make a suggestion

@aleGuardiola
Copy link
Author

Looking at the code we can pass the path of a custom config.js file where all the parameters of the graphiql component can be set in a global object. Exposing the default values that you already have implemented and using them as default.

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

No branches or pull requests

2 participants