Skip to content

Support $expr and $elemMatch with operator-only conditions #9

Open

Description

@DavidBadura

Filters with $expr throw on the PostgreSQL side, and so does $elemMatch when its condition only contains operators, e.g. ['scores' => ['$elemMatch' => ['$gte' => 80, '$lt' => 90]]]. Both work on MongoDB, so code written against the shared API breaks when it runs on Rango.

$elemMatch on scalar arrays seems straightforward to translate. $expr needs a concept first, since it brings aggregation expressions and field references ('$field') into the filter.

Found while reviewing patchlevel/odm#29.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions