Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: computed fields and many to one relationships #1704

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

davenewza
Copy link
Contributor

@computed and M:1 relationships

This PR provides support for referencing fields in a M:1 relationship in a @computed expressions. For example:

model Item {
    fields {
        quantity Number
        product Product
        total Decimal @computed(item.quantity * item.product.price)
    }
}

model Product {
    fields {
        name Text
        price Decimal
    }
}

@davenewza davenewza requested a review from RutZap January 26, 2025 07:02
@davenewza davenewza merged commit d0491a9 into teamkeel:next Jan 27, 2025
10 checks passed
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