Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9118

Comment on: "manual/reference/operator/aggregation/sortByCount.txt"

    XMLWordPrintableJSON

Details

    Description

      Restriction listed "The expression can not evaluate to an object" is not correct.

      The only thing not allowed is an object.

      I.e:
      { "foo": ___ }
      is not allowed, but "$f" may evaluate/expand to an object and that's allowed also. So literal object specification is not allowed but expression can absolutely evaluate to an object as its result.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 1 week ago