title: Why am I getting Promise { <pending> } when using fetch in Promise.all?
body: <p>This works fine:</p>
  
  <pre><code>....
  .then(() =&gt; fetch(link, { headers: {"Content-Type": "application/json; charset=utf-8"} }))
    .then( res =&gt;  res.json())
    .then((response)=&gt;{
      console.log(util.inspect(response, {showHidden: true, depth: null, colors: true}));
    })
  </code></pre>
  
  <p>But whenI try to combine the fetch with another promise:</p>
  
  <pre><code>let dbconnect = require('mongodb').MongoClient.connect("mongodb://localhost:27017/mydb", { useNewUrlParser: true } ),
      call = fetch(link, { headers: {"Content-Type": "application/json; charset=utf-8"} });
  
  
  Promise.all( [dbconnect, call] )
    .then( res =&gt; [res[0], res[1].json()])
    .then( res =&gt; {
      database = res[0];
      sales = res[1];
      console.log(util.inspect(res[1], {showHidden: true, depth: null, colors: true}));
    })
  </code></pre>
  
  <p>I get <code>Promise { &lt;pending&gt; }</code> as the output, it seems as though the Promise.all get run before <code>call()</code> is completed</p>