1
0
Fork 0

Merge branch 'spdvpk' of github.com:arangodb/arangodb into spdvpk

This commit is contained in:
Michael Hackstein 2016-03-10 13:11:52 +01:00
commit 25452fa147
1 changed files with 4 additions and 3 deletions

View File

@ -970,9 +970,10 @@ ArangoCollection.prototype.insert = function (from, to, data, waitForSync) {
to = to._id; to = to._id;
} }
url = "/_api/edge?collection=" + encodeURIComponent(this.name()) data._from = from;
+ "&from=" + encodeURIComponent(from) data._to = to;
+ "&to=" + encodeURIComponent(to);
url = "/_api/collection?collection=" + encodeURIComponent(this.name());
} }
url = this._appendSyncParameter(url, waitForSync); url = this._appendSyncParameter(url, waitForSync);