map Reduce
Aggregates documents according to the specified map-reduce function.
Return
an iterable containing the result of the map-reduce operation
Parameters
A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
A JavaScript function that "reduces" to a single object all the values associated with a particular key.
Aggregates documents according to the specified map-reduce function.
Return
an iterable containing the result of the map-reduce operation
Parameters
A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
A JavaScript function that "reduces" to a single object all the values associated with a particular key.
the class to decode each resulting document into.
Aggregates documents according to the specified map-reduce function.
Return
an iterable containing the result of the map-reduce operation
Since
3.6
Parameters
the client session with which to associate this operation
A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
A JavaScript function that "reduces" to a single object all the values associated with a particular key.
Aggregates documents according to the specified map-reduce function.
Return
an iterable containing the result of the map-reduce operation
Since
3.6
Parameters
the client session with which to associate this operation
A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
A JavaScript function that "reduces" to a single object all the values associated with a particular key.
the class to decode each resulting document into.