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

Advanced $size quering

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.6.0
    • Affects Version/s: None
    • Component/s: Querying
    • Query
    • Fully Compatible

      Now we can query only by "array.$size == N" : { array :

      { $size : 123 }

      }

      It can be useful to query by "array.$size > N", etc.
      Something like
      { array : { $size :

      { $gt : 123 }

      } }
      { array : { $size :

      { $in : [ 5, 6 ] }

      } }

            Votes:
            77 Vote for this issue
            Watchers:
            43 Start watching this issue

              Created:
              Updated:
              Resolved: