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