Method: Mongo::Operation::Update::Result#modified_count
- Defined in:
- lib/mongo/operation/update/result.rb
#modified_count ⇒ Integer
Get the number of documents modified.
67 68 69 70 |
# File 'lib/mongo/operation/update/result.rb', line 67 def modified_count return 0 unless acknowledged? first[MODIFIED] end |