-
Notifications
You must be signed in to change notification settings - Fork 5
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 multiple queries on client #20
Comments
Hi! This package leverages the As soon as they added it in a new release, I'll make sure this package will be updated to! |
@micchickenburger, this is now available in 0.4.0! You can now import multiple queries like this: query foo { foo }
query bar { bar } import { foo, bar } from './your-graphql-file.graphql'; See apollographql/graphql-tag#122 Let me know if you run into any issues! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't seem that I can rename
query
on import. For instance, if I try the following:or
I receive the following error:
The consequence of this is that I can only import one query per JavaScript document. I know that I can do comment includes of other graphql files; however, this doesn't help me on the client where each query accepts different variables.
The text was updated successfully, but these errors were encountered: