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

Document graphql dependency requirement #57

Open
lensbart opened this issue Aug 15, 2019 · 1 comment
Open

Document graphql dependency requirement #57

lensbart opened this issue Aug 15, 2019 · 1 comment

Comments

@lensbart
Copy link

Although graphql will often already be installed in projects using this module, this isn’t necessarily the case (e.g. when sending queries using graphql-request. If graphql is not installed, attempting to use this module will throw the following error:

Error: Cannot find module 'graphql/language'
Require stack:
(...)

which can be fixed by installing graphql.

@lensbart
Copy link
Author

Also, the queries need to be wrapped in print, imported as { print } from 'graphql'

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

1 participant