MichalLytek / MichalLytek/typegraphql-prisma

Option to opt-out of "One" suffix for generated create/update/delete mutations (v 0.21.0)

Open
#306 6 comments 1 reaction 1 assignee View on GitHub

@MichalLytek is already working on this.

Since Jul 27, 2022.

community enhancement priority:high
Dominant language
TypeScript
Stars
918
Forks
130
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.