-
Notifications
You must be signed in to change notification settings - Fork 56
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
Ability to exclude Query, Mutation and Subscription types from imported schema #205
Comments
I've made a fork, that works exactly as I need. It has one difference in index.ts:
|
@atten I think I'm right in saying that if the imported file has any duplicate |
@Siyfion unfornunately, I've tried to transform import like this, but got multiple errors
|
@atten I've done exactly this and it's working fine...? :/ |
I've got a solution outlined here: https://medium.com/@lastmjs/advanced-graphql-directive-permissions-with-prisma-fdee6f846044 |
This feature would be useful when we have types and inputs generated by Prisma, and want to add custom implemented Query and Mutation for real-world app.
For example:
But now I can't do that because
importSchema
grabs generated Query and Mutation types directly into application API.The text was updated successfully, but these errors were encountered: