From dbe09869e635f2bd895a86eb23aafb301a320f35 Mon Sep 17 00:00:00 2001 From: Ankur Datta <64993082+ankur-arch@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:57:19 +0600 Subject: [PATCH] Update 100-prisma-schema-reference.mdx (#6483) closes https://github.com/prisma/docs/issues/3917 --- .../100-prisma-schema-reference.mdx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/content/200-orm/500-reference/100-prisma-schema-reference.mdx b/content/200-orm/500-reference/100-prisma-schema-reference.mdx index dd3d669e18..be22945929 100644 --- a/content/200-orm/500-reference/100-prisma-schema-reference.mdx +++ b/content/200-orm/500-reference/100-prisma-schema-reference.mdx @@ -2733,6 +2733,23 @@ If you're also using [`now()`](/orm/reference/prisma-schema-reference#now), the ::: +:::note + +If you pass an empty update clause, the @updatedAt value will remain unchanged. For example: + +```ts + +await prisma.user.update({ + where: { + id: 1, + }, + data: {}, //<- Empty update clause +}); + +``` + +::: + #### Arguments N/A