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, = {}) _collection.update(spec, doc.to_bson, ) (last_error || {})['updatedExisting'] || false end |