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;
}
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);