↧
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 ArticleMongoDB 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