In Chapter 4: Advanced CRUD Operations
Expressive Query Operator
the video shows the aggregation syntax as { : { , } }
but the actual commands are written as { : [ , ] }
I found this a little confusing. Is there an actual difference here or is it a typo in the lesson? this is the first introduction to aggregation syntax, but clearly the example is written with brackets and not curly braces, like in the following example from the lesson:
db.trips.find({ “$expr”: { “$eq”: [ “$end station id”, “$start station id”] }
}).count()