DevloperAri Roy
09/18/2021, 2:07 PMkhareta
09/18/2021, 2:10 PMauthor: {
connect: {
id: value
}
}khareta
09/18/2021, 2:11 PMDevloperAri Roy
09/18/2021, 2:32 PMRyan
09/20/2021, 6:34 AMauthor is optional but the authorId isn’t. That’s what’s causing the violation.
You need to make both of them optional.