Quantcast
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live