document

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

Produce a bson document with the specified elements.

Return

the document as Bson

Parameters

elements

the element of the document (key:value)