8000 Allow addEdge() to take vertex ids in the JS library by moonglum · Pull Request #528 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Allow addEdge() to take vertex ids in the JS library #528

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 8000 statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2,481 commits into from

Conversation

moonglum
Copy link

Currently, this works:

v1 = graph.addVertex();
v2 = graph.addVertex();

z = graph.addEdge(v1, v2, null, {"name":"john smith"});

However, sometimes, I have the ID of a vertex, but not a reference to it. I can of course, ask ArangoDB to retrieve the vertex and then use it with addEdge(), but that's not efficient.

I would love to be able to do this:

z = graph.addEdge('myvertexcollection/123', 'myvertexcollection/456', null, {"name":"john smith"});

@frankmayer
Copy link
Contributor

Oh yes, that would be great 👍

@ghost ghost assigned fceller May 16, 2013
@ghost ghost assigned moonglum Jun 4, 2013
@moonglum moonglum closed this Oct 31, 2013
@moonglum
Copy link

Sorry, accidentally chose the wrong target branch 😦

@moonglum
Copy link

See #651 – I'm really sorry.

@moonglum
Copy link

Done 😉

@KVS85 KVS85 mentioned this pull request Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 Feature 3 API HTTP / Driver API related 3 Graph Graph query engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0