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 dependencies on code generation #12

Open
zaguiini opened this issue Dec 28, 2019 · 0 comments
Open

Import dependencies on code generation #12

zaguiini opened this issue Dec 28, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@zaguiini
Copy link

Currently the generated code doesn't import any dependencies. Here's what it generates:

image

One possible solution would be to include a configuration file to specify which package to include the dependencies. Something like graphql2ts.config.js or a command-line argument like --package which could be omitted since we are using the graphql-js package.

@sibelius sibelius added the bug Something isn't working label Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants