paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
687 stars 55 forks source link

feat: changing case of model name of single word #241

Open jjangga0214 opened 2 years ago

jjangga0214 commented 2 years ago

Hi!

pal schema camel-case does not change model name if it's a single word and all letters are lowercase.

For example model foo_bar is changed well to model FooBar, while model foo does not.

I think, for consistency, changing every types' name to PascalCase would be better in general.

Thanks.

mubaidr commented 2 years ago
I think, for consistency, changing every types' name to PascalCase would be better in general.

This, output should be consistent.