suspend fun MongoClient.insertWithOptionsAwait(collection: String, document: JsonObject, writeOption: WriteOption): String
Insert a document in the specified collection with the specified write option
writeOption
- the write option to use
resultHandler
- result handler will be provided with the id if document didn't already have one
Return