kmongo / org.litote.kmongo.coroutine / CoroutineMapReducePublisher / finalizeFunction

finalizeFunction

fun finalizeFunction(finalizeFunction: String): CoroutineMapReducePublisher<T> (source)

Sets the JavaScript function that follows the reduce method and modifies the output.

Parameters

finalizeFunction - the JavaScript function that follows the reduce method and modifies the output.

Return
this

Mongodb
.driver.manual reference/command/mapReduce/#mapreduce-finalize-cmd Requirements for the finalize Function