Filter and find documents which have more than one element in an array of objects which have same key value pair – mongodb
A sample collection [ { "_id":"id1", "usersArray":[ { "name":"user1Name", "type":1 }, { "name":"user2Name", "type":1 }, { "name":"user3Name", "type":2 }, ] }, { "_id":"id2", "usersArray":[ { "name":"user4Name", "type":1 }, { "name":"user5Name", "type":3 }, { "name":"user6Name", "type":2 }, ] }, { "_id":"id3",…