fun <reified T : Any> MongoCollection<T>.insert(document: T, options: InsertOneOptions = InsertOneOptions()): Mono<Void>
Inserts the provided object. If the document is missing an identifier, the driver should generate one.
document - the document to insert
document
options - the options to apply to the operation
options