MongoDB/Mongoose check in an array if an attribute matches

后端 未结 0 854
[愿得一人]
[愿得一人] 2020-12-05 18:07

I have an Order model that looks like this:

Now I want to find all orders, where one of the productIds (in the products array) matches at least 1 given productId. Th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题