Skip to content

Feature Request: Merge two directional relationships #243

Open
@mikaelmattsson

Description

@mikaelmattsson

In our project every relationship can be accessed from both nodes, which creates a lot of extra relationships in the graph that are actually the same relationships. Ideally the relationship should be represented by arrows on both sides, or no arrows, and connected to the correct property.

A problem with this is probably that there is no way to know this by just looking at the introspection. Just because there are multiple relationships between two nodes does not mean that they are the same. A solution to this could be to add it to the description in some way, like this:

type Book {
    """
    The author. (connects to: books)
    """
    writtenBy: Author!
}

type Author {
    """
    Books the author has written. (connects to: writtenBy)
    """
    books: [Book!]!
}

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