Permalink
Browse files

Update 06 - mongodb.md

  • Loading branch information...
1 parent 37a9e77 commit 3b022d90b1bcdd6ef4658bf1dd5fdbdddfb41f32 @duarten committed Feb 12, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 06 - mongodb.md
View
@@ -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}})`

0 comments on commit 3b022d9

Please sign in to comment.