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

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

Open
andrejpavlovic opened this issue Oct 31, 2020 · 0 comments
Open

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

andrejpavlovic opened this issue Oct 31, 2020 · 0 comments

Comments

@andrejpavlovic
Copy link
Contributor

andrejpavlovic commented Oct 31, 2020

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> .
@andrejpavlovic andrejpavlovic changed the title Need option to delete only edge Need a way to delete only edge between two nodes Oct 31, 2020
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

No branches or pull requests

1 participant