zero-to-one relationship
Hi everyone, I'm trying to do a zero-to-one relationship in Prisma, but sadly it's not working:
but I'm getting that error:
I'm setting destinationLocationId to either an existing id in the db, or a null value.
I guess it's not possible as I didn't saw any example in the documentation, but I'm hoping someone can help me.
Here's the code:
FYI: either sourceEntityCode is an existing id (for sure), or it's null
FYI2: same for targetEntityCode
but I'm getting that error:
I'm setting destinationLocationId to either an existing id in the db, or a null value.
I guess it's not possible as I didn't saw any example in the documentation, but I'm hoping someone can help me.
Here's the code:
FYI: either sourceEntityCode is an existing id (for sure), or it's null
FYI2: same for targetEntityCode