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

Advanced $size quering

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible

      Description

      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 ] }

      } }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: