Details
-
Bug
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
Query Execution
-
ALL
Description
In the Mongo shell, a command such as
db.aggregate({ $currentOp: {} })
|
fails unless it's written with square brackets:
db.aggregate([{ $currentOp: {} }])
|
This is inconsistent with the behavior of aggregate on a collection.