Add a multiple update operation to the bulk operation
(updateDocument: Document | Document[])
| 690 | |
| 691 | /** Add a multiple update operation to the bulk operation */ |
| 692 | update(updateDocument: Document | Document[]): BulkOperationBase { |
| 693 | const currentOp = buildCurrentOp(this.bulkOperation); |
| 694 | return this.bulkOperation.addToOperationsList( |
| 695 | BatchType.UPDATE, |
| 696 | makeUpdateStatement(currentOp.selector, updateDocument, { |
| 697 | ...currentOp, |
| 698 | multi: true |
| 699 | }) |
| 700 | ); |
| 701 | } |
| 702 | |
| 703 | /** Add a single update operation to the bulk operation */ |
| 704 | updateOne(updateDocument: Document | Document[]): BulkOperationBase { |
no test coverage detected