Permalink
Browse files

implemented full update by _id, upsert=false

  • Loading branch information...
1 parent 2d90683 commit 940d3256be60583c661111f422c4fa1782c210dc @pavlobaron committed Apr 21, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -26,6 +26,10 @@ And do some basic commands:
> db.things.find({a:1}, {b:1})
> db.things.remove({a:1})
> db.things.remove()
+ > db.things.insert({a:1})
+ > x = db.things.findOne()
+ > x.a = 2
+ > db.things.update({_id:x._id}, x, false)
Buckets in the Riak store will be named like "collection.things" - the prefix is thus the name of the database you connect from the Mongo shell to.

0 comments on commit 940d325

Please sign in to comment.