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

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

    XMLWordPrintableJSON

Details

    Description

      i have created the same collection sales, as shown in the example and executed the filter projection query.
      the query throws an error asserting invalid operator $filter.

      assert: command failed:

      { "errmsg" : "exception: invalid operator '$filter'", "code" : 15999, "ok" : 0 }

      : aggregate failed
      _getErrorWithCode@src/mongo/shell/utils.js:25:13
      doassert@src/mongo/shell/assert.js:13:14
      assert.commandWorked@src/mongo/shell/assert.js:267:5
      DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5
      @(shell):1:1

      2016-05-24T11:24:01.257+0530 E QUERY [thread1] Error: command failed:

      { "errmsg" : "exception: invalid operator '$filter'", "code" : 15999, "ok" : 0 }

      : aggregate failed :
      _getErrorWithCode@src/mongo/shell/utils.js:25:13
      doassert@src/mongo/shell/assert.js:13:14
      assert.commandWorked@src/mongo/shell/assert.js:267:5
      DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5
      @(shell):1:1

      Attachments

        Activity

          People

            ravind.kumar Ravind Kumar (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 37 weeks, 1 day ago