skip to Main Content

MongoDB filter when two fields equal

Does anyone who knows how to filter data and only keep those history_doc.data.objectId equals _id? I have tried so many methods but none of them works {'history_doc.data.objectId': {$eq: '$_id'}} {'history_doc.data.objectId': {$eq: {$toString: '$_id'}}}

VIEW QUESTION
Back To Top
Search