INNER CODE UNIT · JavaScript

remove

mongoist/mongoist · lib/bulk.js:45

    const remove = (limit) => {
      const cmd = this.ensureCommand('delete', 'deletes');
      cmd.deletes.push({ q, limit });
    }

    const update = (u, multi) => {
      const cmd = this.ensureCommand('update', 'updates');
      cmd.updates.push({ q, u, multi, upsert })
    }

    return new FindSyntax({ 
      update, 
      upsert(upsertValue) { upsert = upsertValue }, 
      remove 
    });
  }

  insert(doc) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…