kmongo / org.litote.kmongo / document

document

fun document(vararg elements: Bson?): Bson (source)
fun document(elements: Collection<Bson>): Bson (source)

Produce a bson document with the specified elements.

Parameters

elements - the element of the document (key:value)

Return
the document as Bson