action

fun action(action: MapReduceAction): MapReduceFlow<T>

Specify the MapReduceAction to be used when writing to a collection.

Return

this

Parameters

action

an com.mongodb.client.model.MapReduceAction to perform on the collection