I have collection with 2 properties "from_id", "chat_id". I want to filter objects with same values in this fields.
Unfortunatelly, from_id: { $ne: '$chat_id' }
doen't works.
Advice me, please how to exclude such objects.
I have collection with 2 properties "from_id", "chat_id". I want to filter objects with same values in this fields.
Unfortunatelly, from_id: { $ne: '$chat_id' }
doen't works.
Advice me, please how to exclude such objects.