I’m trying to update a parent’s `updatedAt` in Pri...
# orm-help
l
I’m trying to update a parent’s
updatedAt
in Prisma. Curious on thoughts of this solution (I do realize I’m missing
updateMany
here). Is there a better or more idiomatic way to solve keeping these dates in sync?
j
Are you using
@relation
in your schema?
That plus this should get you what you want in your middleware: https://www.prisma.io/docs/concepts/components/prisma-client/relation-queries