Quantcast
Channel: MongoDB simplifying double $elemMatch query - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by JohnnyHK for MongoDB simplifying double $elemMatch query

No, you don't need $elemMatch for that. You could just use:{'chickens.recentlyDroppedEggs.appearance': 'red-blue-striped'}}}}$elemMatch is typically only needed when you want to match multiple fields...

View Article


MongoDB simplifying double $elemMatch query

I am still a bit humble with mongo queries, is it possible, or - regarding performance - necessary, to put the following MongoDB query into a smarter form? Does the double use of $elemMatch affect...

View Article

Browsing all 2 articles
Browse latest View live


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