Skip to content

Allow relates overrides to have lists #406

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

Merged
merged 3 commits into from
Apr 28, 2025

Conversation

flyingsilverfin
Copy link
Member

@flyingsilverfin flyingsilverfin commented Apr 26, 2025

Product change and motivation

We fix one syntactic inconsistency, grammatically allowing list overrides for relation's roles:

define
  relation sub-rel, relates sub-role[] as super-role[];

Implementation

We relax the grammar to allow specialisations of relation's roles with ordering.

Copy link
Member

@farost farost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@flyingsilverfin flyingsilverfin merged commit a37d176 into typedb:master Apr 28, 2025
3 checks passed
@flyingsilverfin flyingsilverfin deleted the allow-relates-as-list branch April 28, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants