kmongo / org.litote.kmongo / com.mongodb.client.MapReduceIterable / scope

scope

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