Database

[{"a":"one","b":"two","c":"three","d":"one"}]

Query

db.collection.aggregate([{$match:{$expr:{$eq:["$a","$d"]}}}])

Result