Skip to content

feat(keys-and): ability to compare nested list objects#61

Open
Patrick-Ullrich wants to merge 1 commit into
masterfrom
query-logic-nested-object-list
Open

feat(keys-and): ability to compare nested list objects#61
Patrick-Ullrich wants to merge 1 commit into
masterfrom
query-logic-nested-object-list

Conversation

@Patrick-Ullrich

Copy link
Copy Markdown

This allows to run operations against nested object lists.

e.g.:

var subset = algebra.filterMembers(
        { filter: { 'employees': {name: 'Patrick' } }},
        [{
            projectId: 1,
            employees: [{
                name: 'Patrick',
            },
            {
                name: 'Justin',
            }]
        }, {
            projectId: 2,
            employees: [
            {
                name: 'Justin',
            }]
        }],
    );

    assert.deepEqual(subset, [{
        projectId: 1,
        employees: [{
            name: 'Patrick',
        },
        {
            name: 'Justin',
        }]
    }])

@eddypjr

eddypjr commented Dec 1, 2021

Copy link
Copy Markdown

LGTM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants