t builder DSL</h4><p class="paragraph">For creating a <code class="lang-kotlin">MutableDocument</code> ready to be saved, you can use a Kotlin builder DSL:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val document = MutableDocument {<br>    "name" to "Damian"<br>    "surname" to "Giusti"<br>    "age" to 24<br>    "pets" to listOf("Kitty", "Kitten", "Kitto")<br>    "type" to "user"<br>}<br><br>collection.save(document)</code></pre><span class="top-right-position"><span c