Mongodb – How to choose lookup/graphlookup to get records from another collection
I have the below dbData wherein in the contracts collection, there is an attribute called via which is an array that holds the mongoose ids of depot entries. db={ "contracts": [ { "_id": ObjectId("630c9e23fb146c4b3b801b9e"), "detention_id": [], "route_exclude": false, "trip_count": null,…