vertx / io.vertx.kotlin.ext.mongo / io.vertx.ext.mongo.MongoClient / insertWithOptionsAwait

insertWithOptionsAwait

suspend fun MongoClient.insertWithOptionsAwait(collection: String, document: JsonObject, writeOption: WriteOption): String

Insert a document in the specified collection with the specified write option

Parameters

collection - the collection

document - the document

writeOption - the write option to use

resultHandler - result handler will be provided with the id if document didn't already have one

Return