Skip to content

Commit

Permalink
Update 050-prisma-client-reference.mdx (#6463)
Browse files Browse the repository at this point in the history
fixes #5019

Co-authored-by: Ankur Datta <[email protected]>
  • Loading branch information
nikolasburk and ankur-arch authored Nov 27, 2024
1 parent 9f97985 commit b3ddcad
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 @@ -4067,23 +4067,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 b3ddcad

Please sign in to comment.