Method: Mongo::Collection#update_one
- Defined in:
- lib/mongo/collection.rb
#update_one(filter, update, options = {}) ⇒ Result
Update a single document in the collection.
1023 1024 1025 |
# File 'lib/mongo/collection.rb', line 1023 def update_one(filter, update, = {}) find(filter, ).update_one(update, ) end |