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

The length of arrays should be exposed as a querieable and selectable attribute

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

      Today the length of the arrays in mongodb documents is not exposed for querying or retrieving. There are many situation where one needs to add to array only if its length is less than N or is a specific size. In the absence of this feature not only one needs to fetch the list first and make a decision on the client, it's impossible to do it atomically. I believe it's a natural attribute to expose and it's fairly easy to.

            Assignee:
            Unassigned Unassigned
            Reporter:
            yfinkelstein Yuri Finkelstein
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: