I have a MongoDB collection of documents with the following "schema" :
{
field1: value1,
field2: value2
}
I want to run a query with "$match" in a pipeline to check the equality of field1 and field2 values.
Something like "field1" == "field2".
How can I do this?
Thank you people!