I have written the Mongo query for console to remove the duplicate records except one in the collection based on the single field/Multiple fields, but I want the correspondi