Method: MongoDoc::Collection#update

Defined in:
lib/mongo_doc/collection.rb

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



77
78
79
80
# File 'lib/mongo_doc/collection.rb', line 77

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