Skip to content

Commit 419c64d

Browse files
committed
docs: add comment about top-level dollar keys re: #13796 code review comments
1 parent a92e8e8 commit 419c64d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/model.updateOne.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,6 +3053,7 @@ describe('model: updateOne: ', function() {
30533053
});
30543054
it('updateOne with top level key that starts with $ (gh-13786)', async function() {
30553055
const [major] = await start.mongodVersion();
3056+
// Top-level dollar key support was added in MongoDB 5
30563057
if (major < 5) {
30573058
return this.skip();
30583059
}

0 commit comments

Comments
 (0)