kmongo / org.litote.kmongo.coroutine / CoroutineMapReducePublisher / scope

scope

fun scope(scope: Bson): CoroutineMapReducePublisher<T> (source)

Sets the global variables that are accessible in the map, reduce and finalize functions.

Parameters

scope - the global variables that are accessible in the map, reduce and finalize functions.

Return
this

Mongodb
.driver.manual reference/command/mapReduce mapReduce