Details
-
Question
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
Minor Change
Description
Some shell helpers throw when a server error is encountered (eg find, group, mapReduce). The aggregate shell helper does not, instead returning a document with ok:0.
Test
t = db.t;
|
t.drop();
|
|
// Invalid matcher syntax.
|
printjson( t.aggregate( { $match:{ a:{ $mod:[ 0 /* invalid */, 0 ] } } } ) );
|
Result
{ "errmsg" : "exception: mod can't be 0", "code" : 10073, "ok" : 0 }
|
Attachments
Issue Links
- is related to
-
SERVER-8805 aggregation $within command: exception thrown
-
- Closed
-
- related to
-
DOCS-1399 shell helper aggregate() throws exception
-
- Closed
-