Skip to content

Commit

Permalink
Split the update command to be true to what's sent
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Jun 20, 2024
1 parent 33cdc75 commit 2704956
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/en/reference/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,15 @@ something like this:

{
$inc: { changes: 1 },
$set: {
notes: [
"Gave user 100k a year raise"
],
salary: 200000
},
}

{
$push: {
projects: {
$each: [
Expand All @@ -241,12 +250,6 @@ something like this:
]
}
},
$set: {
notes: [
"Gave user 100k a year raise"
],
salary: 200000
},
}

This is a simple example, but it demonstrates well that you can
Expand Down

0 comments on commit 2704956

Please sign in to comment.