Hey folks, I’m getting an error within my resolver...
# prisma-whats-new
t
Hey folks, I’m getting an error within my resolver function that,
The field 'abc' on type 'XYZ' is required. Performing this mutation would violate the constraint
even though I can see in the same log that I’m passing a variable called
abcId
— isn’t that how you’re supposed to write mutations with relations?
Oh, wow, it was because I already had a relation in place and it was one-to-one. Rather misleading error 😕