merge

fun merge(collection: MongoCollection<*>, options: MergeOptions = MergeOptions()): Bson
fun merge(collection: MongoCollection<*>, options: MergeOptions = MergeOptions()): Bson

Creates a $merge pipeline stage that merges into the specified collection

Return

the $merge pipeline stage @mongodb.driver.manual reference/operator/aggregation/merge/ $merge @mongodb.server.release 4.2

Parameters

collection

the collection to merge into

options

the merge options