Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update 06 - mongodb.md

  • Loading branch information...
commit 3b022d90b1bcdd6ef4658bf1dd5fdbdddfb41f32 1 parent 37a9e77
@duarten authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  06 - mongodb.md
View
2  06 - mongodb.md
@@ -138,6 +138,8 @@ In lots of ways:
db.blog.insert({title: 'I am a title', content: 'Yadda, yadda, yadda', date: new Date(), tags: ['tag1', 'tag2'], upvotes: 1})
db.blog.update({title: 'I am a title'}, {$set: {content: 'Some interesting content'}})
+* * *
+
**What more can I do with update?**
* `db.blog.update({title: 'I am a title'}, {$inc: {upvotes: -1}})`
Please sign in to comment.
Something went wrong with that request. Please try again.