-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
Query Execution
-
ALL
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.