Cody Moore
02/09/2022, 6:50 PM@map in the schema file (image attached)
Once I make a change I run yarn prisma generate and the .prisma/client folder is updated in node_modules
Looking at the index.js file, nothing seems to be changed and I am still getting the column name (image attached). Seems like it is ignoring @map.
Am I doing something wrong. This seems so simple but yet I am banging my head against the wall. Any help would be greatly appreciated. Running the latest version of prisma and @prisma/client.Tyler Bell
02/09/2022, 7:16 PMCody Moore
02/09/2022, 7:22 PMFirstName to become firstNameCody Moore
02/09/2022, 7:24 PMCody Moore
02/09/2022, 7:24 PMTyler Bell
02/09/2022, 7:26 PMfirstName string? @map("FirstName")Tyler Bell
02/09/2022, 7:26 PMfirstName within prisma client and FirstName is the actual field name in your DB.Tyler Bell
02/09/2022, 7:29 PMCody Moore
02/09/2022, 7:30 PMfirstName and the DB column name is FirstNameCody Moore
02/09/2022, 7:31 PMTyler Bell
02/09/2022, 7:31 PMCody Moore
02/09/2022, 7:35 PMTyler Bell
02/09/2022, 7:37 PM