kmongo / org.litote.kmongo.coroutine / CoroutineMapReducePublisher / jsMode

jsMode

fun jsMode(jsMode: Boolean): CoroutineMapReducePublisher<T> (source)

Sets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions. Defaults to false.

Parameters

jsMode - the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions

Return
jsMode

Mongodb
.driver.manual reference/command/mapReduce mapReduce