jstests/core/apply_ops_missing_field.js
// not use allowAtomic: false.
not use allowAtomic: false.
not use allowAtomic : false .
function applyOps(ops) {
    ops.push({op: "c", ns: "admin.$cmd", o: {applyOps: [{op: "n", ns: "", o: {"msg": "noop"}}]}});
    let command = {applyOps: ops, writeConcern: {w: "majority"}};
    assert.commandWorked(db.adminCommand(command));
}
function applyOps ( ops ) { ops . push ( { op : "c" , ns : "admin.$cmd" , o : { applyOps : [ { op : "n" , ns : "" , o : { "msg" : "noop" } } ] } } ) ; let command = { applyOps : ops , writeConcern : { w : "majority" } } ; assert . commandWorked ( db . adminCommand ( command ) ) ; }
not use allowAtomic: false.
not use allowAtomic : false .