Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-588

Ability to retrieve embedded array of a certain size only

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • any

    Description

      It would be very cool to have the ability to retrieve documents with embedded array of at least a certain size. Currently
      I believe you can only retrieve element of a given size and not a range ie > 20 but less than 50 for example.

      ie

      cltn.find( { freds:{ $size:

      { $gte => 20, $lte:50 }

      } } ) => returns all the doc whose freds array size is gte 10

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            derailed Fernand Galiana
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: