Details

    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL
    • Sprint:
      Tracking Sprint

      Description

      Here a test-case:

      > db.test.insert({"field": [[100,300],[100, 110]]}) 
      > db.test.findOne() 
      { 
              "_id" : ObjectId("4c1f229882c620b16f0d3fbd"), 
              "field" : [ 
                      [ 
                              100, 
                              300 
                      ], 
                      [ 
                              100, 
                              110 
                      ] 
              ] 
      }
      

      These two commands should find this element but they don't:

      > db.test.find({"field": {$elemMatch: {0: 100, 1:300}}}) 
      > db.test.find({"field": {$elemMatch: {0: {$gt: 1}, 1: {$gt: 1}}}}) 
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                12 Vote for this issue
                Watchers:
                25 Start watching this issue

                Dates

                • Created:
                  Updated: