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

[bug] not importing related .grapgql files during codegen #168

Closed
alvis opened this issue May 17, 2018 · 1 comment · Fixed by #169
Closed

[bug] not importing related .grapgql files during codegen #168

alvis opened this issue May 17, 2018 · 1 comment · Fixed by #169

Comments

@alvis
Copy link
Contributor

alvis commented May 17, 2018

With 2.0, related .graphql files are no longer imported into the schema when we run graphql codegen. It is due to a bug that prisma-binding do not handle any import syntax at the moment. See line 73:
https://github.com/prismagraphql/prisma-binding/blob/ef7fc575a8a5473db2f48574c488c71ca181bf9f/src/bin.ts#L71-L86

To fix it, we should wrap it with importSchema from graphql-import, i.e.

return buildSchema(importSchema(input))
@schickling
Copy link
Contributor

Thanks a lot for reporting this @alvis. @timsuchanek will shortly look into this and merge your PR :shipit:

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

Successfully merging a pull request may close this issue.

3 participants