title: How to add an orders array under product schema
body: <p>I have an orders schema which saves all orders when ever a customers checksout. It stores product ID.
  This is how my orders schema looks like after saving an order.</p>
  <pre><code>{
  &quot;allOrders&quot;: [
      {
          &quot;_id&quot;: &quot;6249ee9baa59aceb7d88f91d&quot;,
          &quot;placedby&quot;: &quot;624471321dff6794a802431c&quot;,
          &quot;fullname&quot;: &quot;Collins Jimu&quot;,
          &quot;deliveryaddress&quot;: &quot;cnr fourth and herbet chitepo&quot;,
          &quot;phonenumber&quot;: &quot;0773468496&quot;,
          &quot;whatsappphonenumber&quot;: &quot;0773468496&quot;,
          &quot;ordersList&quot;: [
              {
                  &quot;name&quot;: &quot;Hp 200 G4Core I5&quot;,
                  &quot;qty&quot;: 1,
                  &quot;price&quot;: 560,
                  &quot;imgUrl&quot;: &quot;https://res.cloudinary.com/kwingy/image/upload/v1648734312/cwynmzauqqnylrwsgejy.jpg&quot;,
                  &quot;id&quot;: &quot;6245b0c09390975e16263136&quot;
              },
              {
                  &quot;name&quot;: &quot;bed&quot;,
                  &quot;qty&quot;: 1,
                  &quot;price&quot;: 160,
                  &quot;imgUrl&quot;: &quot;https://res.cloudinary.com/kwingy/image/upload/v1648732217/dtrb8saj0ellgyrcjpyy.jpg&quot;,
                  &quot;id&quot;: &quot;6245a88cf22df558d8d69162&quot;
              },
              {
                  &quot;name&quot;: &quot;Sunglass&quot;,
                  &quot;qty&quot;: 1,
                  &quot;price&quot;: 6,
                  &quot;imgUrl&quot;: &quot;https://res.cloudinary.com/kwingy/image/upload/v1648738341/rtpiptqc1le6kywmuisf.jpg&quot;,
                  &quot;id&quot;: &quot;6245c03bf22df558d8d6a739&quot;
              },
              {
                  &quot;name&quot;: &quot;sofas&quot;,
                  &quot;qty&quot;: 1,
                  &quot;price&quot;: 890,
                  &quot;imgUrl&quot;: &quot;https://res.cloudinary.com/kwingy/image/upload/v1648732837/xae655b5e9wovodfkvqn.jpg&quot;,
                  &quot;id&quot;: &quot;6245aacdf22df558d8d6939f&quot;
              }
          ],
          &quot;paymentmethod&quot;: &quot;cashondeliver&quot;,
          &quot;orderstatus&quot;: &quot;placed&quot;,
          &quot;createdAt&quot;: &quot;2022-04-03T18:59:39.681Z&quot;,
          &quot;updatedAt&quot;: &quot;2022-04-03T18:59:39.681Z&quot;,
          &quot;__v&quot;: 0
      },
  ]
  </code></pre>
  <p>my challenge now is after an order has been placed i want products ordered to display the orders under products schema since these products under the Products schema are showing.
  The moment an order with different products is placed each product ordered must receiver the order details of the person who orderd it and quantity.</p>