PrismaP
Prisma15mo ago
6 replies
Albert

new optional field failing

introduced a new column into one of my models
model MyModel { ... myKey String? @default(uuid()) }
then ran npx prisma migrate dev then deploy on my newly spun up pg docker container successfully, and finally
prisma generate
to regenerate the client.

however, upon attempting input a value when create a new row entry, I'm met with
createOneRequest.data.myKey: Field does not exist in enclosing type.
any idea what I might be missing?
Was this page helpful?