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
It makes senes to try and optimize the calls, so that deleting 100 rows, will not send 100 delete rest api call/sql statements.
On the other hand, if there is a deleting or deleted handler, we still need them to run before the delete.
This is my local implementation, I wish it was in the api.
export async function deleteAll(repo: Repository,
where?: EntityFilter) {
for (const clientRow of await repo.find({ where })) {
await repo.delete(clientRow);
}
}
The text was updated successfully, but these errors were encountered: