Skip to content

Commit 43fbbe5

Browse files
committed
Accept documents everywhere.
1 parent 9882799 commit 43fbbe5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/collection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ extend(EdgeCollection.prototype, {
228228
if (!callback) callback = noop;
229229
this._api.post('edge/', data, {
230230
collection: this.name,
231-
from: fromId,
232-
to: toId
231+
from: this._documentHandle(fromId),
232+
to: this._documentHandle(toId)
233233
}, function (err, body) {
234234
if (err) callback(err);
235235
else callback(null, body);

lib/graph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ extend(EdgeCollection.prototype, {
129129
if (!callback) callback = noop;
130130
this._gharial.post(data, {
131131
collection: this.name,
132-
from: fromId,
133-
to: toId
132+
from: this._documentHandle(fromId),
133+
to: this._documentHandle(toId)
134134
}, function (err, body) {
135135
if (err) callback(err);
136136
else callback(null, body);

0 commit comments

Comments
 (0)