I
I
ignat072019-03-19 12:34:14
PHP
ignat07, 2019-03-19 12:34:14

How to compare two fields in mongo?

Hello, I have a collection Test and it has 2 fields field1 and field2 . I'm using collection->aggregate , that's how it should be :) That's why I can't compare two fields using where. Tell me how to do this for aggregations.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question