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

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: