lib/mongoid/contextual/map_reduce.rb in mongoid-7.0.1 vs lib/mongoid/contextual/map_reduce.rb in mongoid-7.0.2

- old
+ new

@@ -163,10 +163,10 @@ # # @since 3.0.0 def raw validate_out! cmd = command - opts = { read: cmd.delete(:read).options } if cmd[:read] + opts = { read: cmd.delete(:read) } if cmd[:read] @map_reduce.database.command(cmd, (opts || {}).merge(session: _session)).first end alias :results :raw # Execute the map/reduce, returning the raw output.