Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Merge af27339 into 27e6813
Browse files Browse the repository at this point in the history
  • Loading branch information
Lytol committed Sep 21, 2013
2 parents 27e6813 + af27339 commit 93a90a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moped/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Moped
# people.find.skip(2).update(name: "John")
# people.find.skip(2).first # => { id: 3, name: "John" }
#
# people.find(name: nil).update_all(name: "Unknown")
# people.find(name: nil).update_all("$set" => { name: "Unknown" })
# people.find.one # => { id: 5, name: "Unknown" }
# people.find.first # => { id: 5, name: "Unknown" }
# people.find.select(name: 0).first # => { id: 5 }
Expand Down Expand Up @@ -393,7 +393,7 @@ def update(change, flags = nil)
# Update multiple documents matching the query's selector.
#
# @example Update multiple documents.
# db[:people].find(name: "John").update_all(name: "Mary")
# db[:people].find(name: "John").update_all("$set" => { name: "Mary" })
#
# @param [ Hash ] change The changes to make to the documents
#
Expand Down

0 comments on commit 93a90a8

Please sign in to comment.