So is Prisma supposed to update the updatedAt time...
# orm-help
a
So is Prisma supposed to update the updatedAt timestamp when you call modelName.update() ???
r
Yeah it will automatically update the field attributed with
@updatedAt
a
That's so weird, I wonder if I'm doing something wrong.
r
Could you share what query you’re executing that is not being updated?
a
Copy code
return await db.feature.update({
    data: { featureDetails: { create: { description } } },
    where: { id: featureId },
  })
What I did to make it update was pass updatedAt: new Date()
Yeah I'm just testing it now. I'm actually just adding a featureDetail to a feature in hopes of getting the feature updatedAt timestamp to update but it seems like the only way I can get it to do that is to actually manually update the updatedAt property. I'm not sure if this would work if I was updating some other property on the feature.
r
Could you create an issue here for this, based on your query I created a sample schema and tried it but I’m not facing the same issue you are i.e.
updatedAt
is automatically filled by Prisma.