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

$or and $and operators do not work #10

@shirouto

Description

@shirouto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions