-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: 1.19.12
-
Component/s: Aggregation pipeline, Tech debt
-
None
-
Environment:Windows 10, 64-bit, MongoDB Compass Community
-
Not Needed
-
None
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 ...}