title: Javascript error - Iterate over array of itmes
body: <p>I have an input in the below format. I need to go over the items and call a query by passing in each value at a time. I tried the below code using &quot;Promise&quot; object but I am not able to retrieve the items individually in the below list.</p>
  <pre><code>     [ { Codes: [ '123', '234' ] } ]
  </code></pre>
  <p>Code I tried:</p>
  <pre><code>const getByCodes = async ({ neo4j }, { items }) =&gt;
    Promise.all(
      items.map(async ({ Codes }) =&gt; {
          return neo4j.run(CodesQuery.getCodesQuery({ items }))
  }));
  </code></pre>
  <p>New to javascript, so any leads would be appreciated.</p>