Below is my collection, can you please update me how to write a code to delete duplicate records from below collection, having duplicate records in collection, please explain me how to delete the duplicate records from collection.
/* 1 */
{
"_id" : ObjectId("5e84200bdf949c00404ed5ff"),
"area" : "573",
"bc" : "GER",
"bd" : "52001450",
"bg" : "52001450",
"borg" : "cde5642",
"bsg" : "51585929",
"bsgname" : "INFO TECHNOLOGY",
"consulting" : null,
"mobilePhoneNumber" : null,
"cfax" : null,
"l" : "BERL",
"cpgr" : null,
"o" : "S",
"friendlyCountryName" : "Germ",
"ctel" : "+49",
"mail" : "tl2625@ge.at.com",
"exch" : "204",
"ext" : "5408",
"facsimileTelephoneNumber" : null,
"givenName" : "POMAS",
"employeeNumber" : "0249527",
"jt" : "MC",
"jtname" : "FLEX FORCE ENGINEER IV",
"sn" : "LEMP",
}
/* 2*/
{
"_id" : ObjectId("5e84200bdf949c00404ed601"),
"area" : "573",
"bc" : "GER",
"bd" : "52001450",
"bg" : "52001450",
"borg" : "cde5642",
"bsg" : "51585929",
"bsgname" : "INFO TECHNOLOGY",
"consulting" : null,
"mobilePhoneNumber" : null,
"cfax" : null,
"l" : "BERL",
"cpgr" : null,
"o" : "S",
"friendlyCountryName" : "Germ",
"ctel" : "+49",
"mail" : "tl2625@ge.at.com",
"exch" : "204",
"ext" : "5408",
"facsimileTelephoneNumber" : null,
"givenName" : "POMAS",
"employeeNumber" : "0249527",
"jt" : "MC",
"jtname" : "FLEX FORCE ENGINEER IV",
"sn" : "LEMP",