PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 20th of May, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[06:52:19] <iAreBaboon> hi all
[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()
[17:45:48] <Jackneill> h
[17:45:49] <Jackneill> hi
[17:46:06] <Jackneill> do you have a handy tool to compare collections / show diffs of them of the different dbs?