Details
-
Bug
-
Resolution: Fixed
-
Minor - P4
-
1.19.12
-
None
-
Windows 10, 64-bit, MongoDB Compass Community
-
Not Needed
Description
On the Aggregations tab when this pipeline is used:

, an error Expected "[" or AggregationStage but "{" found. is reported. When the pipeline is executed in Mongo Shell, there's no error:
> db.col.aggregate([{
|
... $match: {
|
... $expr: {
|
... $eq: [
|
... "$_id", ObjectId("5d768411c6575d0078903a38") |
... ]
|
... }
|
... }
|
... }])
|
{ "_id" : ObjectId("5d768411c6575d0078903a38"), ... rest of results ...} |