Is there any way to set a default value for a one ...
# prisma-whats-new
b
Is there any way to set a default value for a one to many relation? (for the model that only takes a single id as a property)
n
@brad.barnes Currently not. I've added it as feature request!
What would you expect when the default value is not valid?
E.g. the node is deleted after the default value was set
b
I'm about javascript logic around the null value with hasProperty......but I was getting an error cannot find property of undefined due to a null as opposed to an empty object being there.
*being returned
n
hm can you provide your code?
b
I'm actually out of the house, but it really is no big deal. I can't expect a backend to do all my work for me. Graphcool already comes pretty close 🙂
n
I don't understand the situation here. Maybe you can help me understand it later 😉