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

all accumulators should be available as expressions

    XMLWordPrintableJSON

Details

    • Query

    Description

      Not clear why $first $last and $addToSet are the only accumulators not available as regular expressions with array argument.  In particular $last is helpful to avoid very verbose syntax for $arrayElemAt plus calculate position of last element ($subtract 1 from $size)

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: