MongoDB aggregation failing because "pipeline stage specification object must contain exactly one field"
I have the following aggregation stage that I'd like to add to my pipeline, but it keeps failing. When I use the MongoDB Compass Aggregation GUI, everything works as it should. I even exported that pipeline from the GUI and…