Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

mongodb find documents where two fields are equal

db.myCollection.find( { $where: "this.a1.a != this.a2.a" } )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongodb #find #documents #fields #equal
ADD COMMENT
Topic
Name
3+3 =