Quantcast
Channel: Multiple $elemMatch in one query - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Sarath Nair for Multiple $elemMatch in one query

You cannot use multiple projection operator ($) in a query. The positional operator only supports one level nesting and also it matches the first element.There is a JIRA ticket on this:...

View Article



Multiple $elemMatch in one query

My basic structure is this for a user:{name : 'name',lists : [ {id : 'xyz', items : [ {name : 'itemName', purchased : false } ] }]}I want to write a query where I can update itemName's purchased Bool.I...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>