Skip to content

MongoDB driver for Kotlin (synchronous)opensavvy.ktmongo.sync.operationsInsertOperations

InsertOperations

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

abstract fun insertOne(document: Document, options: <Document>.() -> Unit = {})

Inserts a document.