Database

[{name:"doc1",moniker:"doc1",arr:[1,2],},{name:"doc2",arr:[3,3],}]

Query

db.collection.find({$expr:{$eq:["$arr.0","$arr.1"]}})

Result