The query returns two documents:
db.testData.find({x:5}); { "_id" : ObjectId("529680a82ac8f8a788401688"), "x" : 5, "y" : 20, "z" : "hi" } { "_id" : ObjectId("529690982ac8f8a78840169e"), "x" : 5, "y" : 5, "z" : "address" }
How to specify the condition x=y to return the last document?