Method: Mongoid::Collection#map_reduce
- Defined in:
- lib/mongoid/collection.rb
#map_reduce(map, reduce, options = {}) ⇒ Cursor Also known as: mapreduce
Perform a map/reduce on the documents.
112 113 114 |
# File 'lib/mongoid/collection.rb', line 112 def map_reduce(map, reduce, = {}) master().map_reduce(map, reduce, ) end |