Peter
08/22/2022, 12:22 AMconst update = await prisma.post.update({
where: {
id: 6,
},
data: {
author: {
upsert: {
create: {
email: '<mailto:bob@prisma.io|bob@prisma.io>',
name: 'Bob the New User',
},
update: {
email: '<mailto:bob@prisma.io|bob@prisma.io>',
name: 'Bob the existing user',
},
},
},
},
})
Nurul
08/22/2022, 11:01 AMupdatedAt
column will be updated with the current time even if the data being updated is same as existing data. So this would be expected behaviour.