SoftDeleteMany
Security delete, receives as parameter the type of the array of entity to delete it or a array of { key: value } and execute multiple queries at once.
await this.examplesRepository.softDeleteMany(
[
{ id: 1 },
{ id: 2 },
{ id: 3 },
{ id: 4 },
{ id: 5 },
],
trx,
);
// invalidate example
Was this helpful?