vegardit / prisma-generator-nestjs-dto

Generates NestJS DTO classes from Prisma Schema
Apache License 2.0
274 stars 76 forks source link

Singular vs Plural resource name #21

Open Djiit opened 2 years ago

Djiit commented 2 years ago

While generating the dto and entities using the outputToNestJsResourceStructure option, resources names are singular; but the CRUD resource generator of NestJS uses plural names. Should we use plural names?

benkroeger commented 2 years ago

I believe, the CRUD resource will have whatever name you want it to. You provide the name when invoking the cli. However, it seems that nest recommends plural form https://github.com/nestjs/docs.nestjs.com/issues/1176

Happy to review a PR for a config option

bmxpiku commented 2 years ago

I'm really looking forward to this feature