e class="block lang-kotlin" theme="idea">val document = MutableDocument {<br>  "name" to "John"<br>  "surname" to "Doe"<br>  "type" to "user"<br>}</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">a <a href="../../couchbase-lite/kotbase/-mutable-document/index.html">MutableDo