Skip to content

Commit

Permalink
MONGOID-4461 Encourage referring to MongoDB docs for supported map re…
Browse files Browse the repository at this point in the history
…duce options
  • Loading branch information
estolfo committed Jul 28, 2017
1 parent c5fe473 commit 6af6825
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mongoid/contextual/map_reduce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.
Expand Down

0 comments on commit 6af6825

Please sign in to comment.