kmongo / org.litote.kmongo.reactivestreams / com.mongodb.reactivestreams.client.MapReducePublisher / scope

scope

fun <T> MapReducePublisher<T>.scope(scope: String): MapReducePublisher<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