Skip to content

The $value operator should set context #147

@kjellmorten

Description

@kjellmorten

With the following pipeline:

[
            { $value: ['table1', 'table2'] },
            {
              $filter: 'compare',
              path: '.',
              operator: 'in',
              not: true,
              valuePath: '^.excludeSubTables[]',
            },
          ]

... one would expect to filter by the values in excludeSubTables present on the object that was in the pipeline before we did $value, but it seems we get the level above that instead.

There is no way to get the object that was there before $value, and it seems to be "overwritten" in the context history.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions