How do I merge two different collections of same database into a new collection having similar field values in MongoDB?
I have a collection called "datas" and the other collection is named as "aidretentionandgraduations" in a database called "challenge". Both collections have similar values stored in different field called unitId and Unitid, their values should be used to merge those…