IssueRaiser

Support global config for name casing (table, fields)

## Problem Mapping database table name and field name is tiring and counter productive both (creating new project or coming from existing database project) ## Suggested solution ```graphql generator client { provider = "prisma-client-js" casing = "snake-case" // camel-case, pascal-case, kebab-case pluralize = true } ``` Instead of mapping every table name and column name with @map @@map we can instead use global config like that. `pluralize` also included to map model name to db ex: from `model User{}` to becoming `users` in database

Posted by sandbox-apps on Jul 14, 2021, 4:37 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

support (Other)

Support global config for name casing (table, fields)

sandbox-appsJul 14, 2021, 4:37 PM

## Problem Mapping database table name and field name is tiring and counter productive both (creating new project or coming from existing database project) ## Suggested solution ```graphql generator client { provider = "prisma-client-js" casing = "snake-case" // camel-case, pascal-case, kebab-case pluralize = true } ``` Instead of mapping every table name and column name with @map @@map we can instead use global config like that. `pluralize` also included to map model name to db ex: from `model User{}` to becoming `users` in database

Comments (0)

No comments yet. Start the discussion.

Comment on this issue