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

Skip to content

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

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

Merged
merged 4 commits into from
Oct 31, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Graph Module / Client: It has to send the ID, not the key
  • Loading branch information
moonglum committed Oct 31, 2013
commit e7e47cece0f40d3e52ebd86d5c91fc1ef8b997fb
4 changes: 2 additions & 2 deletions js/client/modules/org/arangodb/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ Graph.prototype._saveEdge = function(id, out_vertex, in_vertex, params) {
var results;

params._key = id;
params._from = out_vertex._properties._key;
params._to = in_vertex._properties._key;
params._from = out_vertex._properties._id;
params._to = in_vertex._properties._id;

results = GraphAPI.postEdge(this._properties._key, params);
return new Edge(this, results.edge);
Expand Down
0