title: Aggregate mongoDB collections
body: <p>I have two collections and I want to join those two collections this is my first collection:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;taskId&quot;: &quot;62925ec4e9ebd8e244287299&quot;,
      &quot;gebruikerId&quot;: &quot;6287cd19af1540ea55212fee&quot;,
      &quot;fotoUrl&quot;: &quot;&lt;url&gt;&quot;,
      &quot;afgerond&quot;: false,
      &quot;notitie&quot;: &quot;&quot;,
      &quot;_id&quot;: &quot;62927baabc3b9a3603ad56aa&quot;,
      &quot;createdAt&quot;: &quot;2022-05-28T19:44:42.559Z&quot;,
      &quot;updatedAt&quot;: &quot;2022-05-28T19:44:42.559Z&quot;,
      &quot;__v&quot;: 0
  }
  </code></pre>
  <p>And I want to join the taskId of the previous collection on the _id of this collection:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;_id&quot;: &quot;62925ec4e9ebd8e244287299&quot;,
      &quot;taskNaam&quot;: &quot;BodyShot&quot;,
      &quot;omschrijving&quot;: &quot;Neem een bodyshot uit de navel van Nils&quot;,
      &quot;punten&quot;: 100,
      &quot;fotoUrl&quot;: &quot;&lt;url&gt;&quot;,
      &quot;locked&quot;: true,
      &quot;createdAt&quot;: &quot;2022-05-28T17:41:24.358Z&quot;,
      &quot;updatedAt&quot;: &quot;2022-05-28T17:41:24.358Z&quot;,
      &quot;__v&quot;: 0
  }
  </code></pre>