Skip to content

Commit

Permalink
Update 100-prisma-schema-reference.mdx (#6483)
Browse files Browse the repository at this point in the history
closes #3917
  • Loading branch information
ankur-arch authored Dec 4, 2024
1 parent cec3899 commit dbe0986
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions content/200-orm/500-reference/100-prisma-schema-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbe0986

Please sign in to comment.