From d0001dc0bad940bc227fbfa1c59c66d1bc6338c8 Mon Sep 17 00:00:00 2001 From: Nikolas Date: Wed, 27 Nov 2024 14:04:14 +0100 Subject: [PATCH] Update 050-prisma-client-reference.mdx fixes #5019 --- .../500-reference/050-prisma-client-reference.mdx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/content/200-orm/500-reference/050-prisma-client-reference.mdx b/content/200-orm/500-reference/050-prisma-client-reference.mdx index d02bc906df..4ddbaa7343 100644 --- a/content/200-orm/500-reference/050-prisma-client-reference.mdx +++ b/content/200-orm/500-reference/050-prisma-client-reference.mdx @@ -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',