Adding "OR" inside nested "where" returns nothing.
Removing "OR" inside nested "where" returns the results.
What's the issue?
Adding "OR" inside nested "where" returns nothing.
Removing "OR" inside nested "where" returns the results.
What's the issue?
Copyright © 2021 Jogjafile Inc.

The problem might arise from the query value being potentially undefined. Using undefined as a value in a filter essentially tells Prisma Client you have decided not to define a filter for that column. In such cases, each Prisma operator behaves differently when no filters are defined:
ORwill return empty list.ANDreturn all items.NOTreturn all items.By commenting out the
ORoperator, you effectively applied the AND operator, resulting that returned all items.For additional details refer to this page: The effect of null and undefined on conditionals