In 
MongoDB you can compare one field to another using 
$expr: 
db.users.find({ $expr: { $eq: ["$created_at", "$updated_at"] } }) Here we get users that their 
updated_at field is equal to 
created_at field, here it means that user has not yet updated his        profile. 
#mongodb #mongo #expr #find