From a8ff672ba74ea97a99a4e3b2bb40b7e7b5bac14a Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Thu, 10 Mar 2016 13:11:07 +0100 Subject: [PATCH] Fix arangosh w.r.t. withdrawn /_api/edge --- js/client/modules/@arangodb/arango-collection.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/client/modules/@arangodb/arango-collection.js b/js/client/modules/@arangodb/arango-collection.js index eb9dda1013..4889ec10f6 100644 --- a/js/client/modules/@arangodb/arango-collection.js +++ b/js/client/modules/@arangodb/arango-collection.js @@ -970,9 +970,10 @@ ArangoCollection.prototype.insert = function (from, to, data, waitForSync) { to = to._id; } - url = "/_api/edge?collection=" + encodeURIComponent(this.name()) - + "&from=" + encodeURIComponent(from) - + "&to=" + encodeURIComponent(to); + data._from = from; + data._to = to; + + url = "/_api/collection?collection=" + encodeURIComponent(this.name()); } url = this._appendSyncParameter(url, waitForSync);