[06:52:35] <iAreBaboon> I'm new to Mongo and learning aggregations. Need to accomplish the following: Have 2 collections, A and B. Docs in B have an array field called A_ids, basically references to documents in A.
[06:53:00] <iAreBaboon> I want to modify A, such that it has a field called B_id, which contains the _id from collection B
[06:53:08] <iAreBaboon> Are aggregations the best option for this? Someone suggested I use $project followed by collection.update(), but i'd rather do all in 1 aggregation pipeline without calling .update()