lib/mongoid/contextual/map_reduce.rb in mongoid-5.2.1 vs lib/mongoid/contextual/map_reduce.rb in mongoid-5.4.0

- old
+ new

@@ -109,10 +109,11 @@ @map_reduce = @map_reduce.js_mode(true) self end # Specifies where the map/reduce output is to be stored. + # Please see MongoDB documentation for supported map reduce options. # # @example Store output in memory. # map_reduce.out(inline: 1) # # @example Store output in a collection, replacing existing documents. @@ -121,9 +122,12 @@ # @example Store output in a collection, merging existing documents. # map_reduce.out(merge: "collection_name") # # @example Store output in a collection, reducing existing documents. # map_reduce.out(reduce: "collection_name") + # + # @example Return results from map reduce. + # map_reduce.out(inline: 1) # # @param [ Hash ] location The place to store the results. # # @return [ MapReduce ] The map/reduce object. #