MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync.operations • InsertOperations • insertOne
insertOne¶
Inserts a document
.
Example¶
Note that insertOne
ignores filtered collection
. That is, insertOne
on a filtered collection behaves exactly the same as the same insertOne
on the underlying real collection.
External resources¶
See also¶
InsertOperations.insertMany
Insert multiple documents.