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

fix(schema): support import syntax upon codegen #169

Merged
merged 1 commit into from
May 25, 2018
Merged

fix(schema): support import syntax upon codegen #169

merged 1 commit into from
May 25, 2018

Conversation

alvis
Copy link
Contributor

@alvis alvis commented May 17, 2018

With 2.0, related .graphql files are not imported into the schema when we
run graphql codegen. It is due to the fact that bin.ts is just reading the schema literally right now. i.e. in line 73
https://github.com/prismagraphql/prisma-binding/blob/ef7fc575a8a5473db2f48574c488c71ca181bf9f/src/bin.ts#L71-L86

fix: #168

Right now, related .graphql files are not imported into the schema when we
run `graphql codegen`. It is due to the missing importSchema in bin.ts.

fix: #168
@alvis alvis mentioned this pull request May 19, 2018
@timsuchanek
Copy link
Contributor

Thanks for the PR @alvis !

@timsuchanek timsuchanek merged commit b91834b into prisma-labs:master May 25, 2018
@alvis alvis deleted the import branch May 27, 2018 00:22
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

Successfully merging this pull request may close these issues.

[bug] not importing related .grapgql files during codegen
2 participants