Add a delete one operation to the bulk operation
()
| 728 | |
| 729 | /** Add a delete one operation to the bulk operation */ |
| 730 | deleteOne(): BulkOperationBase { |
| 731 | const currentOp = buildCurrentOp(this.bulkOperation); |
| 732 | return this.bulkOperation.addToOperationsList( |
| 733 | BatchType.DELETE, |
| 734 | makeDeleteStatement(currentOp.selector, { ...currentOp, limit: 1 }) |
| 735 | ); |
| 736 | } |
| 737 | |
| 738 | /** Add a delete many operation to the bulk operation */ |
| 739 | delete(): BulkOperationBase { |
no test coverage detected