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

Import from npm modules #256

Closed
anarasimhan opened this issue Nov 17, 2018 · 3 comments
Closed

Import from npm modules #256

anarasimhan opened this issue Nov 17, 2018 · 3 comments

Comments

@anarasimhan
Copy link

Is it possible to load schema from other npm modules? All the examples I have seen so far is importing graphql files from the same application or module.

Something like

# import Post from 'posts.graphql'
# import Author from 'author-module/schema.graphql'
@taras
Copy link

taras commented Dec 8, 2019

We need to be able to do the same thing. We publish graphql schemas a npm packages. We would like to be able to import these into a single graphql package. One difference with our setup is that our packages have schema property in package.json that we use like an entry point. It's like main for JavaScript.

@ardatan
Copy link
Owner

ardatan commented Mar 17, 2020

Available in 1.0.0!

@ardatan ardatan closed this as completed Mar 17, 2020
@taras
Copy link

taras commented Mar 17, 2020

Thank you!

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

No branches or pull requests

3 participants