title: Getting "undefined" when trying to post with EXPRESS on SQL database?
body: <p>(still a beginner with sql and express)</p>
  <p>I am trying to make a post request on my SQL database with express. When I try posting with Postman, I get a &quot;TypeError: Cannot read properties of undefined&quot;.</p>
  <p>Here's the code:</p>
  <pre><code>    app.post('/getperipherals', (req, res) =&gt; {
      let product = {
          product_name: req.body.product_name,
          product_type: req.body.product_type,
          product_brand: req.body.product_brand,
          product_description: req.body.product_description,
          product_url: req.body.product_url,
      };
      let sql = `INSERT INTO users (product_name, product_type, product_brand, product_description, product_url, register_date) values ('?', '?', '?', '?','?', now())`;
      let query = db.query(sql, product, (err, result) =&gt; {
          if(err) throw err;
          res.send(result)
      })
  })
  </code></pre>
  <p>This is what my request looks like on postman:</p>
  <pre><code>{
  &quot;product_name&quot;: &quot;Imprimante TEST&quot;,
  &quot;product_type&quot;: &quot;printer&quot;, 
  &quot;product_brand&quot;: &quot;Marque TEST&quot;,
  &quot;product_description&quot;: &quot;This is a POST test&quot;, 
  &quot;product_url&quot;: &quot;https://i.imgur.com/RwvdTpV.png&quot; 
  }
  </code></pre>
  <p>( a POST request, with my custom route -which is working-)</p>