Aggregate $match _id $eq $toObjectId not working

Hi David,

The $eq used in find()/$match (without $expr) must specify an exact value: https://docs.mongodb.com/manual/reference/operator/query/eq/

You can use $eq: ObjectId("...")

Jess

3 Likes