I've found the solution here https://github.com/prisma/prisma/discussions/8216#discussioncomment-992302

It should be like this instead apparently.

await prisma.product.findMany({
      where: {
        AND: [
          { price: 21.99 },
          { filters: { some: { name: 'ram', value: '8GB' } } },
          { filters: { some: { name: 'storage', value: '256GB' } } },
        ],
      },
})
Answer from Manish Karki on Stack Overflow
Discussions

Use multiple conditions inside AND operator in a nested relation
Hi, its my first time using prisma and I'm stuck. Tried asking in slack, but no luck. Here's my stackoverflow question for this same problem https://stackoverflow.com/questions/68326989/how-do-i-use-and-operator-with-multiple-query-parameters-in-nested-relation-wh More on github.com
🌐 github.com
2
2
July 12, 2021
how to use OR array inside AND prisma - Stack Overflow
For reference: AND and OR Prisma Documentation. ... Sign up to request clarification or add additional context in comments. ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... 5 How do I use "AND" operator with multiple query parameters ... More on stackoverflow.com
🌐 stackoverflow.com
How to correctly use the "AND" operator in Prisma?
First of all start with simple postgresql query and achieve the targeted result and then try to convert it to Prisma version 2024-01-18T06:01:22.69Z+00:00 More on stackoverflow.com
🌐 stackoverflow.com
OR operator results in a query with AND
I am expect the code above creates a query with an OR operator as below: ...FROM "public"."events" WHERE ("public"."events"."store" = $1 OR "public"."events"."user" = $2)... But the code results in a query if an AND operator: ...FROM "public"."events" WHERE ("public"."events"."store" = $1 OR ... More on github.com
🌐 github.com
4
June 28, 2023
🌐
Prisma Cloud
docs.prismacloud.io › en › enterprise-edition › content-collections › search-and-investigate › rql-operators
Prisma Cloud Technical Documentation
June 11, 2025 - An operator in RQL is one or more symbols or words that compare the value of a field on its left with one or more values on its right, such that only valid results are retrieved and displayed to you.
🌐
Brockherion
brockherion.dev › blog › posts › how-to-do-conditional-where-statements-in-prisma
How to do conditional 'where' statements in Prisma — Brock Herion
Here, we’re using a conditional statement to determine whether or not we should add the a the where clause. Then, we’re using the AND operator to only get values that in our filters array and are not null. If we don’t have any filters, then we don’t add any conditions. In this article, we looked at how we can create dynamic where clauses in Prisma.
🌐
Brendonovich
prisma.brendonovich.dev › reading-data › find
Find Queries - Prisma Client Rust - Brendonovich
use prisma::{post, comment}; let ... and an empty none filter will match every record with no linked records. The operators and, or and not can be used inside any query....
Find elsewhere
Top answer
1 of 2
1

This is the right solution, the authorship is not mine, the guys helped me find it.

        const product = await this.prismaService.product.findMany({
        where: {
            AND: [
                { price: 21.99 },
                { options: { some: { title: 'invertor', description: '25' } } },
                { options: { some: { title: 'type', description: 'invertor' } } },
                { options: { some: { title: 'WiFi:', description: 'yes' } } },
            ],
        },
        include: { options: true },
    });
2 of 2
1

It seems like the issue might be related to the way you are using the AND operator within the some filter. The some filter is designed to check if at least one element in the array satisfies the conditions, and the AND operator inside it might not be working as expected.

You can try below update version - old

const product = await this.prismaService.product.findMany({
  where: {
    options: {
      every: {
        OR: [
          { title: 'square', description: '20' },
          { title: 'type', description: 'invertor' },
        ],
      },
    },
  },
  include: { options: true },
});

I replaced the some filter with the every filter and used OR conditions within it. This should find products that have at least one option with either the specified title and description

New Query

const product = await this.prismaService.product.findMany({
  where: {
    options: {
      some: {
        title: 'square',
        description: '20',
      },
      some: {
        title: 'type',
        description: 'invertor',
      },
    },
  },
  include: { options: true },
});

I separated the some filters for each condition. This should retrieve products that have at least one option with the first set of conditions (title: 'square', description: '20') and at least one option with the second set of conditions (title: 'type', description: 'invertor').

🌐
GitHub
github.com › prisma › prisma › discussions › 19939
OR operator in include where produces AND in query · prisma/prisma · Discussion #19939
Bug description query is: const keys = await db.projectKey.findMany({ where: { projectId, }, include: { translationKeys: { where: { locale: sourceLocale, OR: { locale: targetLocale, }, }, }, }, });...
Author   prisma
🌐
Prisma-capacity
help.prisma-capacity.eu › support › solutions › articles › 36000087678-how-to-view-your-assignments-to-operators-
How to View your Assignments to Operators? : PRISMA Capacity Platform
Check the requirements needed for registration by each Operator on our Market Participants page. ... Here, you will find an overview of all your current assignments and their current statuses: (1) "Waiting for Approval," (2) "Approved," (3) "Temporarily Disabled" and (4) "Cancelled."
🌐
Prisma-capacity
help.prisma-capacity.eu › support › solutions › articles › 36000269902-how-to-request-assignments-to-operators-
How to Request Assignments to Operators? : PRISMA Capacity Platform
December 9, 2024 - Overview To trade on the platform with specific operators, you will need active assignments to them, which means that your company and your user will need to be approved by the single operator. You can request assignments directly on the...
🌐
Palo Alto Networks
docs.paloaltonetworks.com › prisma › prisma-cloud › prisma-cloud-rql-reference › rql-reference › operators
Prisma Cloud Enterprise Edition
September 8, 2023 - This documentation set is for the Darwin release, which has a redesigned UI and enhanced security capabilities. The following screenshot shows the new Darwin UI. You'll notice the main navigation is now aligned along the top of the window. If this is what your UI looks like, you're in the right doc set. If not, go to Enterprise Edition - Classic. The Darwin release comes with fresh, new content, including use cases, to help you operationalize Enterprise Edition.
🌐
Vertex
vertex-monaco.com › en › operator-panel- › 941-operator-panel-prisma.html
Operator Panel Prisma - vertex-monaco.com
More details · Availability date: ... · The Prisma machine control system is completely customizable, consisting of a console and a base both completely customizable, through numerous connections and front buttons...
🌐
Prisma
prisma.io › blog › satisfies-operator-ur8ys8ccq7zb
How TypeScript 4.9 `satisfies` Your Prisma Workflows
December 1, 2022 - This is a generic, no-op function that takes an argument and a type parameter, ensuring the two are compatible. An example of this kind of function is the Prisma.validator utility, which also does some extra work to only allow known fields defined ...
🌐
GitHub
github.com › prisma › prisma › issues › 19992
OR operator results in a query with AND · Issue #19992 · prisma/prisma
June 28, 2023 - I am expect the code above creates a query with an OR operator as below: ...FROM "public"."events" WHERE ("public"."events"."store" = $1 OR "public"."events"."user" = $2)... But the code results in a query if an AND operator: ...FROM "public"."events" WHERE ("public"."events"."store" = $1 OR "public"."events"."user" = $2)...
Author   prisma
🌐
Lightrun
lightrun.com › answers › prisma-prisma-relation-filter-operator-every-does-not-work-correctly
Relation filter operator 'every' does not work correctly
Bug description Relation filter. Relation filter operator 'every' does not work correctly. 'Every' will return records in case there's no related record (r...