davidlatwe / montydb

Monty, Mongo tinified. MongoDB implemented in Python !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$elemMatch in $elemMatch find nothing

rewiaca opened this issue · comments

Hi @davidlatwe,
Just discovered that monty(montydb-2.3.10) can't handle query like:

x = col.find({"mapping": {'$elemMatch': {'$elemMatch': {'$in': [https://accounts.google.com/o/oauth2/aut']}}}})

for a array in array elements:

"mapping": [ ["https://accounts.google.com/o/oauth2/auth", "client_id", "redirect_uri", "scope", "response_type"] ]

Just doesn't find anything, unlike pymongo does

Hey @rewiaca , thanks for reporting. It's fixed and 2.3.11 is out. :)