Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7021

Provide more complex example for aggregate add

    XMLWordPrintableJSON

Details

    Description

      Please give some complex example like:

      {
          "_id" : ObjectId("569e18bf3e8595fa736a6179"),
          "item" : "AB",
          "details" : {
              "modal" : 14,
              "manufacturer" : "UBN soft"
          },
          "stock" : [ 
              {
                  "size" : "s",
                  "qty" : 25.0000000000000000
              }, 
              {
                  "size" : "M",
                  "qty" : 24.0000000000000000
              }
          ],
          "category" : "dress"
      }
      

      And I want to add modal with qty

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 14 weeks, 1 day ago