Mongodb – Turning the output of one query as the array of an $in operator of another query
Essentially, there are 2 queries. The first one queries a collection_A and then return an array of _id. The second query will use this array in a $in operator to query collection_B. How can this be done in just 1…