MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync.operations • InsertOperations
InsertOperations¶
interface InsertOperations<Document> : BaseOperations
Interface grouping MongoDB operations relating to inserting new documents.
Inheritors¶
Properties¶
context
¶
abstract val context:
Functions¶
insertMany
¶
open fun insertMany(vararg documents: Document, options: <Document>.() -> Unit = {})
Inserts multiple documents
in a single operation.
abstract fun insertMany(documents: Iterable<Document>, options: <Document>.() -> Unit = {})
Inserts multiple documents
in a single operation.
insertOne
¶
Inserts a document
.