Skip to content

Need a way to delete only edge between two nodes #41

Description

@andrejpavlovic

Sample data:

const data = [
  {
    uid: '0x1',
    'Person.name': 'John'
  },
  {
    uid: '0x2',
    'Person.name': 'Jane',
    'Person.friends': [
      {
        uid: '0x1',
      }
    ]
  }
];

How do I delete only the friends edge between Jane and John?
I would just like to generate the following nquad: <0x2> <Person.friends> <0x1>, but if I call anything like jane.friends.delete(john); I get more than just that edge deleted:

<0x1> * * .
<0x2> <Person.friends> <0x1> .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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