Join Slack
Powered by
Hi, I think there is type mismatch in my generated...
# orm-help
b
Basix
11/05/2019, 3:17 AM
Hi, I think there is type mismatch in my generated Prisma Client. I have a optional string field called
name
in my
User
type, so when I create user without name, it creates
name: null
in new row. But in the typescript type definition, the name field is described as
name?: string
, which means it cannot handle
null
.
Open in Slack
Previous
Next