Files
mongo/jstests/core/write/update/update_blank1.js
Jason Zhang 28eb8d299b SERVER-80780 Merge writes without shard key jscore passthrough with existing passthrough suites (#20175)
GitOrigin-RevId: a54cc3a3df44359ea51533f062642ee841f71460
2024-04-08 02:28:42 +00:00

10 lines
229 B
JavaScript

let t = db.update_blank1;
t.drop();
let orig = {"": 1, _id: 2, "a": 3, "b": 4};
t.insert(orig);
var res = t.update({}, {$set: {"c": 5}});
print(res);
orig["c"] = 5;
assert.docEq(orig, t.findOne(), "after $set"); // SERVER-2651