INNER CODE UNIT · JavaScript

Bulk

mongoist/mongoist · lib/bulk.js:6

class Bulk {
  constructor(colName, ordered, connect, opts) {
    this.colName = colName;
    this.ordered = ordered;
    this.connect = connect;
    
    opts = opts || { writeConcern: { w: 1 } };
    this.writeConcern = opts.writeConcern || { w: 1 };

    this.cmds = [];

    this.cmdKeys = {
      insert: 'nInserted',
      delete: 'nRemoved',
      update: 'nUpserted'
    }
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…