I would like to know if Mongo itself has an operator ($eq, $lookup, etc) for comparing two documents.
@redeemefy we don’t have a basic solution however the blog post “Comparing Subdocuments In MongoDB Expressions” offers a solution that may be suitable for your use case.