Looks like there’s a workaround here: MongoDB update field value as ObjectId - #6 by kimus
So a workaround would look something like { "$expr": { "$eq": ["$_id", { "$toObjectId": "<object-id>" }] } }
- can you give that a shot?
Looks like there’s a workaround here: MongoDB update field value as ObjectId - #6 by kimus
So a workaround would look something like { "$expr": { "$eq": ["$_id", { "$toObjectId": "<object-id>" }] } }
- can you give that a shot?