You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/200-orm/500-reference/050-prisma-client-reference.mdx
+19-10Lines changed: 19 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -3607,20 +3607,13 @@ const result = await prisma.user.update({
3607
3607
3608
3608
## Filter conditions and operators
3609
3609
3610
-
<Admonition type="info">
3611
-
3612
-
- From version 4.3.0, you can also use these operators to compare _fields_ in the same model [with the `<model>.fields` property](#compare-columns-in-the-same-table).
3613
-
- In versions before 4.3.0, you can compare fields in the same model [with raw queries](/orm/more/help-and-troubleshooting/comparing-columns-through-raw-queries).
3614
-
3615
-
</Admonition>
3616
-
3617
3610
### `equals`
3618
3611
3619
3612
Value equals `n`.
3620
3613
3621
3614
#### Examples
3622
3615
3623
-
##### Return all users where `name` equals `"Eleanor"`
3616
+
**Return all users where `name` equals `"Eleanor"`**
3624
3617
3625
3618
```ts
3626
3619
const result = await prisma.user.findMany({
@@ -3642,7 +3635,7 @@ const result = await prisma.user.findMany({
3642
3635
});
3643
3636
```
3644
3637
3645
-
##### Return all products with a quantity lower than the "warn quantity" threshold
3638
+
**Return all products with a quantity lower than the "warn quantity" threshold**
3646
3639
3647
3640
This example compares fields of the same model which is available as of version 4.3.0.
0 commit comments