Q:

mongodb find documents where two fields are equal

db.myCollection.find( { $where: "this.a1.a != this.a2.a" } )
0

New to Communities?

Join the community