In mongodb know index of array element matched with $in operator?

后端 未结 3 1688
别那么骄傲
别那么骄傲 2020-12-11 12:19

I am using aggregation with mongoDB now i am facing a problem here, i am trying to match my documents which are present in my input array by using $in operator. Now i want t

3条回答
  •  心在旅途
    2020-12-11 13:17

    //$match,$in,$and

        $match:{
            $and:[        
            {"uniqueID":{$in:["CONV0001"]}},
            {"parentID":{$in:["null"]}},
            ]
           }
       }])
    

提交回复
热议问题