-
Notifications
You must be signed in to change notification settings - Fork 110
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
Option to opt-out of "One" suffix for generated create/update/delete mutations (v 0.21.0) #306
Comments
However, I agree that this breaking change might be hard to upgrade for users that have an existing GraphQL API. |
Because of the scope of this change, is there a reason this particular release was not marked as a breaking change ( |
@SheaBelsky Please read about semver in 0.x releases
npm treats 0.x releases as |
TIL - sorry for my initial misunderstanding! |
Rather than trying to define "standard", I would vote for something more generic like an explicit rename mapping in generator config ( Also, @MichalLytek, there are several generator examples in the docs that are now wrong due to this change. For example, showing |
@aldeed You're right. The problem deeps down even further - the Prisma input names are still using the old name, so we have in schema e.g. Explicit mapping is tricky as we already have hardcoded mapping like |
Is your feature request related to a problem? Please describe.
Version 0.21.0 changes the name of generated mutations from createXYZ to createOneXYZ (similar for update / delete). This introduces a sizable effort to migrate to Prisma 4 and typgraphql-prisma 0.21.0. Also, I personally liked the old naming convention better 😬. It was clear and concise... the
One
suffix doesn't really add much value.Describe the solution you'd like
Would you consider adding an option to opt-out of the
One
suffix? Or alternatively, check with the community and go back to the old approach if there is sufficient support?Thanks! Otherwise, v 0.21.0 looks great...
typegraphql-prisma
is an amazing package, appreciate all the work that goes into it.The text was updated successfully, but these errors were encountered: