Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Array of FindOptionsWhere in Repository.update #9728

Open
18 tasks
jehy opened this issue Jan 24, 2023 · 0 comments
Open
18 tasks

Support Array of FindOptionsWhere in Repository.update #9728

jehy opened this issue Jan 24, 2023 · 0 comments

Comments

@jehy
Copy link

jehy commented Jan 24, 2023

Feature Description

I want to make a simple thing - an update query with multiple OR conditions.
Or is supported in Repository.find method via Array, but in Repository.update I can only pass a single FindOptionsWhere, not an array.

The Solution

Add Array as a possible Repository.update argument

Considered Alternatives

Alternatively, you would have to use query builder or make many queries instead of one. Both are bad alternatives.

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

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

No, I don’t have the time, but I can support (using donations) development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant