Skip to content

Commit a3585de

Browse files
author
Jessica Lord
authored
Merge pull request #1556 from BravoTheft/patch-2
Change 'updateOne' into 'replaceOne' in e.g 54
2 parents 2d7b7ec + 0980cea commit a3585de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/examples_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ exports['update and replace'] = {
851851

852852
var promise =
853853
// Start Example 54
854-
db.collection('inventory').updateOne(
854+
db.collection('inventory').replaceOne(
855855
{ item: "paper" },
856856
{ item: "paper",
857857
instock: [

0 commit comments

Comments
 (0)