You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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)
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.
The text was updated successfully, but these errors were encountered: