davidlatwe / montydb

Monty, Mongo tinified. MongoDB implemented in Python !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Positional operator issue

rewiaca opened this issue · comments

Doesn't work with positional operators. Made the same update_one with pymongo successfully. Don't sure if monty got this feature yet not, but as I can see it causing error.

update_one({'users': {'$elemMatch': {'_id': id_}}}, {'$set': {'invoices.$.name': name}})

montydb.erorrs.WriteError: The positional operator did not find the match needed from the query.

Hi @rewiaca
I have made #51, but currently only tests are added for proving the bug and found the cause.
Hopefully I can fix it soon :)

Fixed and 2.3.10 is out.