Skip to content

Feature or documentation: how to add multiple "where conditions" on the same property with FindOptionsWhere ? #9466

@dawadam

Description

@dawadam

Documentation Issue

What was unclear or otherwise insufficient?

How to add multiple "where conditions" on the same property with FindOptionsWhere ?

Exemple :

const whereCondition: FindOptionsWhere<EntityExemple> = {}

whereCondition.time = MoreThanOrEqual(from)
whereCondition.time = MoreThan(from2)
whereCondition.time = LessThan(to)

await repositoryEntityExemple.find({ where: whereCondition })

ps : I know Between, but it's convenient for me, because not exclusive.

Recommended Fix

Additional Context

Are you willing to resolve this issue by submitting a Pull Request?

  • ✖️ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions