I have a mongo collection, and I need to find documents in this collection, in which fields name and address are equal.
I have searched a lot, I could only find MongoDb query condition on comparing 2 fields and MongoDB: Unique and sparse compound indexes with sparse values, but in these questions they are looking for documents in which field a = field b, but I need to find document1.a == document2.a