Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
mongodb v 3.2.6
ubuntu 14.04
*Location*: https://docs.mongodb.com/manual/reference/operator/aggregation/filter/#exp._S_filter
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36
*Referrer*: https://docs.mongodb.com/manual/reference/operator/projection/positional/
*Screen Resolution*: 1366 x 768
mongodb v 3.2.6 ubuntu 14.04 *Location*: https://docs.mongodb.com/manual/reference/operator/aggregation/filter/#exp._S_filter *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36 *Referrer*: https://docs.mongodb.com/manual/reference/operator/projection/positional/ *Screen Resolution*: 1366 x 768
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