Guilherme Nimer
07/29/2022, 8:12 PMAustin
07/29/2022, 8:24 PMFinancialRecords.tags is of type TagsOnFinancialRecords, you need to specify another level of nesting for the write:
await prisma.financialRecords.create({
data: {
tags: {
create: {
tag: {
create: {
name: 'test'
}
}
}
}
}
})Guilherme Nimer
07/29/2022, 8:44 PMGuilherme Nimer
07/29/2022, 8:45 PMGuilherme Nimer
07/29/2022, 9:04 PM