Skip to content

Prevent link and unlink edits for link types not backed my Many to Many links #1876

@nihalbhatnagar

Description

@nihalbhatnagar

In order to modify links not backed by a many to many link, its required to send a modifyEdit that modifies the foreign key property.

While we wait for the backend to be able to support these edits, we should cause a compile time error when traversing in the one direction of a link. We currently don't gate behind anything.

We probably need to look at the Link metadata and the multiplicity of the direction we're traversing

Unfortunately, we cannot know if a link is backed by a 1 to many link or many to many link with the data we get back from API Gateway, so we cannot add a compile time error when the link is traversed in the many direction. This will be resolved within functions as a local preview error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions