Skip to content

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

InsertOperations

Properties

context

abstract val context: 

Functions

insertMany

open suspend fun insertMany(vararg documents: Document, options: <Document>.() -> Unit = {})

Inserts multiple documents in a single operation.

abstract suspend fun insertMany(documents: Iterable<Document>, options: <Document>.() -> Unit = {})

Inserts multiple documents in a single operation.

insertOne

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

Inserts a document.