Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

$or and $and operators do not work #10

Open
shirouto opened this issue Sep 23, 2020 · 0 comments
Open

$or and $and operators do not work #10

shirouto opened this issue Sep 23, 2020 · 0 comments

Comments

@shirouto
Copy link

Hi there.

It appears the mongo operators are not properly instrumented when they appear inside arrays/lists. For example something like:

{and: [{field1: {eq: val1}},  {field2: {eq: val2}}]}

will not be properly resolved. Specifically, eq will not be transformed to $eq.

The issue seems to be because the code in the template mongoke/templates/resolvers_support.py that does not recurse through lists (only dictionaries). Something like shirouto/mongoke@f88a539 seems to fix it.

Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant