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: ERROR CLASS: Symbol not found for BsonContext

Functions

insertMany

open fun insertMany(vararg documents: Document, options: ERROR CLASS: Symbol not found for InsertManyOptions.() -> Unit = {})

Inserts multiple documents in a single operation.

abstract fun insertMany(documents: Iterable<Document>, options: ERROR CLASS: Symbol not found for InsertManyOptions.() -> Unit = {})

Inserts multiple documents in a single operation.

insertOne

abstract fun insertOne(document: Document, options: ERROR CLASS: Symbol not found for InsertOneOptions.() -> Unit = {})

Inserts a document.