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

Export graphql from gatsby #2814

Closed
Alxandr opened this issue Nov 6, 2017 · 6 comments
Closed

Export graphql from gatsby #2814

Alxandr opened this issue Nov 6, 2017 · 6 comments

Comments

@Alxandr
Copy link

Alxandr commented Nov 6, 2017

To get around the issue of multiple graphql instances being loaded, could you export graphql from the gatsby package? So we can do this:

const { GraphQLString } = require('gatsby').graphql;
@KyleAMathews
Copy link
Contributor

That could work! @jquense had a similar idea I think.

@Alxandr
Copy link
Author

Alxandr commented Nov 6, 2017

I tested it by modifying gatsby locally and it worked. Would love for this to be published.

@KyleAMathews
Copy link
Contributor

Would you like to add a PR exporting graphql from gatsby? Plus converting some other plugins to use this exported version instead of relying on graphql directly?

@Alxandr
Copy link
Author

Alxandr commented Nov 8, 2017

I can take a look at it.

@Alxandr
Copy link
Author

Alxandr commented Nov 11, 2017

Sorry, but I'm going to have to say I unfortunately won't be doing this anytime soon anyways. I currently don't have the surplus to do so.

@m-allanson
Copy link
Contributor

Tidying up the v2 project, I'm going to close this as a duplicate of #4711.

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

3 participants