title: Why is my response data undefined when sending a fetch()?
body: <p>I am trying to use a fetch() on my client side to post data to and from my nodeJS server.</p>
  <p>The server recieves the post request fine and i am able to log the req variables however when i res.send('any data') the client cannot detect the data. Strangely chrome can see the response but i simply do not know how to reference the data!</p>
  <p>Client Code</p>
  <pre class="lang-js prettyprint-override"><code>fetch('/',{
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
    user:{
      name: 'John',
      email: 'J@B.com',
    }
  })
  .then(res =&gt; console.log(res))
  .then(data =&gt; console.log(data))
  .catch((error) =&gt; console.error('Error:',error))
  </code></pre>
  <p>Server Code</p>
  <pre class="lang-js prettyprint-override"><code>app.post('/', (req,res) =&gt; {
    console.log(req.body.user)
    res.send('hello?')
  })
  </code></pre>
  <p><a href="https://i.stack.imgur.com/FKPoH.png" rel="nofollow noreferrer">Chrome able to read response but data field showing undefined</a></p>