Quantcast
Channel: mongodb $elemMatch - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Remon van Vliet for mongodb $elemMatch

$
0
0
t.find({$and:[{a:{$elemMatch:{a:1, b:2}}}, {a:{$elemMatch:{a:3, b:4}}}, {a:{$elemMatch:{a:5, b:6}}}]})

It isn't a particularly high performance option though.


Viewing all articles
Browse latest Browse all 4

Trending Articles



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