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

saveAwait

suspend fun MongoClient.saveAwait(collection: String, document: JsonObject): String

Save a document in the specified collection

Parameters

collection - the collection

document - the document

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

Return