title: shipingAddress1:res.body.shipingAddress1, ^ TypeError: Cannot read properties of undefined (reading 'shipingAddress1')
body: <pre class="lang-js prettyprint-override"><code>router.post('/', async (req, res) =&gt; {
      const orderItemsIds =Promise.all( req.body.orderItems.map(async orderItem =&gt; {
          let newOrderItem= new OrderItem({
              quantity:orderItem.quantity,
              product:orderItem.product
          });
  
          if (!newOrderItem) {
              return res.status(400).send(&quot;error the newOrderItem is fiald&quot;)
          }
          newOrderItem= await newOrderItem.save();
          return newOrderItem.id;
      }));
  
      const orderItemsIdResolved=await orderItemsIds;
      console.log(orderItemsIdResolved);
  
      let order = await new Order({
          orderItems:orderItemsIdResolved,
          shipingAddress1:res.body.shipingAddress1,
          shipingAddress2:res.body.shipingAddress2,
          city:res.body.city,
          zip:res.body.zip,
          country:res.body.country,
          phone:res.body.phone,
          status:res.body.status,
          totalPrice:res.body.totalPrice,
          user:res.body.user,
      });
      // order=await order.save()
  
      if (!order)
          return res.status(400).send('The Order can not be placed');
      res.send(order)
  });
  </code></pre>
  <p><strong>I cant find the error ....help</strong></p>