Upsert modifier for update bulk operation, noting that this operation is an upsert.
()
| 746 | |
| 747 | /** Upsert modifier for update bulk operation, noting that this operation is an upsert. */ |
| 748 | upsert(): this { |
| 749 | if (!this.bulkOperation.s.currentOp) { |
| 750 | this.bulkOperation.s.currentOp = {}; |
| 751 | } |
| 752 | |
| 753 | this.bulkOperation.s.currentOp.upsert = true; |
| 754 | return this; |
| 755 | } |
| 756 | |
| 757 | /** Specifies the collation for the query condition. */ |
| 758 | collation(collation: CollationOptions): this { |
no outgoing calls
no test coverage detected