Skip to content

Commit

Permalink
Update 050-prisma-client-reference.mdx
Browse files Browse the repository at this point in the history
fixes #5019
  • Loading branch information
nikolasburk authored Nov 27, 2024
1 parent 64f33cf commit d0001dc
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions content/200-orm/500-reference/050-prisma-client-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4068,23 +4068,11 @@ All conditions must return `false`.

#### Examples

##### Get all `Post` records where the `title` field contains `Prisma` or `databases`, but not `SQL`
##### Get all `Post` records where the `title` does not contain `SQL`

```js
const result = await prisma.post.findMany({
where: {
OR: [
{
title: {
contains: 'Prisma',
},
},
{
title: {
contains: 'databases',
},
},
],
NOT: {
title: {
contains: 'SQL',
Expand Down

0 comments on commit d0001dc

Please sign in to comment.