Skip to content

Implement OR Condition in where Clauses #19

Description

@teles

Implement OR Condition in where Clauses

Description:

Add support for logical OR conditions in where clauses, allowing queries to return records that meet at least one of the specified conditions.

Objective:

  • Enable the combination of multiple conditions using logical OR in queries.
  • Update the syntax of the where parameters to support arrays or objects representing combined conditions.
  • Ensure the implementation is intuitive and consistent with existing filtering functionalities.

Acceptance Criteria:

  • Calling findMany({ where: { OR: [{ condition1 }, { condition2 }] } }) returns records that meet at least one of the specified conditions.
  • Documentation updated with examples demonstrating the use of OR.
  • Automated tests cover various scenarios of combined conditions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions