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

Return