You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once models in resolver names are Capitalized on Nexus Generator, we need to Capitalize in requests of Prisma Table
NOTE: This component use 3 queries (findUnique, findMany, findManyCount) and 3 mutations (createOne, updateOne, deleteOne) be sure to add them in your backend by using our CLI pal generate
Now, models are creating this resolvers
Model
Resolver
Request from AdminTable
Ok?
commom_user
createOneCommom_user
createOnecommom_user
❌
CommomUser
createOneCommomUser
createOneCommomUser
✅
Ive fixed and sending a PR
The text was updated successfully, but these errors were encountered:
Prisma recommends to type in camel case can you use pal schema camel-case to update your schema with camel case
A way to automatically convert to PascalCase is very good
But I believe that because it is not a mandatory step before use generator, and the Nexus resolvers is always with capitalized model names, it is still a bug.
What do you think?
Once models in resolver names are Capitalized on Nexus Generator, we need to Capitalize in requests of Prisma Table
Now, models are creating this resolvers
Ive fixed and sending a PR
The text was updated successfully, but these errors were encountered: