Skip to content

[ENHANCEMENT]: filter support values on both sides of compare functions #8636

@rderbier

Description

@rderbier

Use case and current behavior

It is useful to compare variables computed on selected nodes.
For example :
Type A as relationships to B and C. Find the node A which have the same number of relationships to B and to C.

Enhancement

@filter(eq(val(firstCount), val(secondCount))) should be supported.

Solution proposal

No response

Links to Discuss, RFC or previous Issues and PRs

https://discuss.dgraph.io/t/comparing-two-predicate-counts-in-a-filter/5955

Links to examples and research

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaledgraphIssue or PR created by an internal Dgraph contributor.kind/enhancementSomething could be better.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions