Skip to content

Commit

Permalink
FIX #143 it auto-saves
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Jun 6, 2017
1 parent be43683 commit c9c1606
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs-src/RxDocument.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,14 @@ myDocument.remove();
Updates the document based on the [mongo-update-syntax](https://docs.mongodb.com/manual/reference/operator/update-field/), based on [modifyjs](https://github.com/lgandecki/modifyjs#implemented).

```js
myDocument.update({
await myDocument.update({
$inc: {
age: 1 // increases age by 1
},
$set: {
fistName: 'foobar' // sets firstName to foobar
}
});
await myDocument.save();
```


Expand Down

0 comments on commit c9c1606

Please sign in to comment.