MCPcopy
hub / github.com/mongodb/node-mongodb-native / upsert

Method upsert

src/bulk/common.ts:748–755  ·  view source on GitHub ↗

Upsert modifier for update bulk operation, noting that this operation is an upsert.

()

Source from the content-addressed store, hash-verified

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 {

Callers 15

bulk.test.tsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80
main.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected