My query above should return only that subdocument from the testArray whose 'payMethod' field is equal to 'NetBanking'
I am not only getting the matching subdocument from the array but all the other subdocuments too.
I just want that subdocument from the array that matches using $elemMatch above.
댓글 없음:
댓글 쓰기