Method: MongoDoc::Collection#update

Defined in:
lib/mongodoc/collection.rb

#update(spec, doc, options = {}) ⇒ Object



36
37
38
39
# File 'lib/mongodoc/collection.rb', line 36

def update(spec, doc, options = {})
  _collection.update(spec, doc.to_bson, options)
  (last_error || {})['updatedExisting'] || false
end