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

Comment on: "about/support.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

    Description

      {
      "_id" : "98856426593333333",
      "created_on" : ISODate("2015-10-01T17:27:00.492+05:30"),
      "updated_on" : ISODate("2015-10-01T18:15:07.472+05:30"),
      "version" : NumberLong(44370350747263521),
      "somtest" : {
      "cmpid_taskid" : {
      "trans_date" : ISODate("2015-09-25T05:00:00.000+05:30"),
      "val" : [
      {
      "TASK_ID" :

      { "val" : "9-GFT-NE012-15093008_AP", "count" : NumberLong(1) }

      ,
      "GRID_ID" :

      { "val" : NumberLong(1006111), "count" : NumberLong(1) }

      ,
      "trans_date" : ISODate("2015-09-25T05:00:00.000+05:30"),
      "CAMP_ID" :

      { "val" : "9-GFC-5026_AP11", "count" : NumberLong(2) }

      }
      ]
      }
      }
      }

      from above document i want to pull the
      "CAMP_ID" :

      { "val" : "9-GFC-5026_AP11", "count" : NumberLong(2) }

      i tried with this query
      db.microrecoprofiledeletecollection.update({},{$pull:{ "cmpid_taskid":

      {CMP_ID.val:"9-GFC-5026_AP"}

      }},

      {multi:true}

      );

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 18 weeks, 1 day ago