so i'm trying to match if the orders.id match by UserModel.find() then it should return that array.
https://i.sstatic.net/bNjgW.png
For example, I have two elements inside orders array, i need to check which one is equal to that id and then return that element that's equal to this. So it should return orders of index 0 and it's elements
I tried this:
userModel.find({ orders.id: orderID });
but it doesn't return the element