title: node.js I want to query Array with promise all
body: <pre><code>    let total = title.map(title =&gt; {
        return new Promise((resolve,reject) =&gt; {
           let total_count  = Village.count({
              where: {
                      m_id: title.m_id
              }
            });
            resolve(total_count);
              
        })
      });
      let date_first = title.map((title) =&gt; {
          return new Promise((resolve,reject) =&gt; {
              let result = Village.count({
                  where: {
                      m_id : title.m_id,
                      [Op.not]: [{date_start:null}]
                  }
              });
              resolve(result)
          })
      });
      let promise = Promise.all([total,date_first]).then(result =&gt; {
          console.log(result);
          console.log(result)
          return result;
      }).then(result =&gt; {
          console.log(result);
          return result;
      });
  
  </code></pre>
  <p>I want to query those thing. and I want to get those result or push in the Array.I don't know what should I do. Please advice me.Thank You</p>