From 6af682579f11074fcb49765eb2e2bcf6ab003c48 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 28 Jul 2017 12:02:58 +0200 Subject: [PATCH] MONGOID-4461 Encourage referring to MongoDB docs for supported map reduce options --- lib/mongoid/contextual/map_reduce.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/mongoid/contextual/map_reduce.rb b/lib/mongoid/contextual/map_reduce.rb index fdc9bcd4b0..111e2085d3 100644 --- a/lib/mongoid/contextual/map_reduce.rb +++ b/lib/mongoid/contextual/map_reduce.rb @@ -111,6 +111,7 @@ def js_mode 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) @@ -124,6 +125,9 @@ def js_mode # @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.