Skip to content

allow creating many to one rules #37

@dwiel

Description

@dwiel

For example:

gc.rule(['person.children.id', 'person.children.age'], 'person.oldest_child.id', cardinality='many-to-one')
def person_oldest_child(ids, ages):
    return argmax(ages, ids)

In this case, would a query which also fetches children and constrains them affect the oldest_child?

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