title: Migrate datat MongoDB in liquibase
body: <p>I have in mongo 2 collections that look something like this:</p>
  <p>collection1:</p>
  <pre><code>{
  &quot;id&quot;: &quot;someId&quot;,
  &quot;name&quot;: &quot;someName&quot;
  }
  </code></pre>
  <p>colleciton2:</p>
  <pre><code>{
  &quot;_id&quot;: &quot;id&quot;,
  &quot;objectOfTypeCollection1&quot;: [{
      &quot;id&quot;: &quot;someId2&quot;,
      &quot;name&quot;: &quot;someName2&quot;
      }]
  }
  </code></pre>
  <p>After the migration I need to have:
  collection1:</p>
  <pre><code>{
  &quot;id&quot;: &quot;someId&quot;,
  &quot;name&quot;: someName
  },
  {
  &quot;id&quot;: &quot;someId2&quot;,
  &quot;name&quot;: &quot;someName2&quot;
  }
  </code></pre>
  <p>This is easly done with some javascript code, but I need to have this migration in Liquibase, which means using runCommand. As of now I am unaware of a way to have a find command inside the update command in order to manage to move the data from collection2.objectOfTypeCollection1 into collection1.</p>
  <p>To put it simple, can you use JS in runCommand?</p>