9;Todo&#39;, TodoSchema);
</code></pre>
<p>This way, all of our TODOs will have two fields, the text and a boolean indicating whether or not it&#39;s done.</p>
<p>The mongoose configuration <code>MONGODB_URI</code> <a href="https://serverjs.io/documentation/options/#environment">comes from the environment</a>.</p>
<h2 id="todos-logic">Todos logic</h2>
<p>Now, to write this code we create the file <code>todo.js</code> with this code:</p>
<pre><code class="language-js">// todo.js
const { json } = require(&#39