Skip to content

MongoDB driver for Kotlin (coroutines)opensavvy.ktmongo.coroutines.operationsInsertOperations

InsertOperations

Properties

context

abstract val context: ERROR CLASS: Symbol not found for BsonContext

Functions

insertMany

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

Inserts multiple documents in a single operation.

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

Inserts multiple documents in a single operation.

insertOne

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

Inserts a document.