Hello everybody, I cannot set a field `null` if it...
# orm-help
j
Hello everybody, I cannot set a field
null
if it’s defined as a list ? Like
String[]
?
r
@jasci 👋 No that’s not supported. What would be your use case for this?
j
It’s just the way it was implemented with prisma1. Wanted also to ask about setting some fields if I’m not sure that the value is provided: I can set some field as
null
and it’s gonna be set
null
in the db. Or I can set some field as
undefined
and it’s as if this field was not provided at all. I can provide
undefined
for the relation as well as scalar fields ?
r
You don’t need to provide any value if you do not want to set it. It is not required and will always return an empty array (
[]
) when fetched.
1