I think you need to use get query first and then compare, if the comparison result is false then use update query. Otherwise not
User.find({'key': 'Value'}).exec(function(err, result){
if(result.key !== 'your new value'){
user.update({query}, data, function(err, user){
})
}
}
source
to share