Ability to retrieve embedded array of a certain size only

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Environment:
      any
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

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

              Created:
              Updated:
              Resolved: