I don't know if there is a solution for comparing 2 field in database by parse query? Ex: query.equalTo('$createdAt', '$updatedAt');