Answer the question
In order to leave comments, you need to log in
How to search by _id when aggregating?
I'm trying to master aggregation and immediately stumbled upon a problem, when I try to search by id I get an error
.aggregate([{$match: {app: new ObjectId(OBJECT_ID) }}])
Answer the question
In order to leave comments, you need to log in
Friends, I am very interested in the answer to this question! Tell me - was a solution found and if so - ... please tell me what and how ?!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question