Skip to content

Commit

Permalink
docs: add comment about top-level dollar keys re: #13796 code review …
Browse files Browse the repository at this point in the history
…comments
  • Loading branch information
vkarpov15 committed Aug 29, 2023
1 parent a92e8e8 commit 419c64d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/model.updateOne.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3053,6 +3053,7 @@ describe('model: updateOne: ', function() {
});
it('updateOne with top level key that starts with $ (gh-13786)', async function() {
const [major] = await start.mongodVersion();
// Top-level dollar key support was added in MongoDB 5
if (major < 5) {
return this.skip();
}
Expand Down

0 comments on commit 419c64d

Please sign in to comment.