Skip to content

Commit 1fbd202

Browse files
Hunter21007pluma
authored andcommitted
Fixed wrong accessor in GraphEdgeCollectin.edge (#501)
the method returned undefined because result of the edge operation does not returned graph. Istead it returned edge. changed from res.body.graph to res.body.edge
1 parent 81dfe13 commit 1fbd202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class GraphEdgeCollection extends EdgeCollection {
114114
const res = await this._gharial.get(
115115
`/${this._documentHandle(documentHandle)}`
116116
);
117-
return res.body.graph;
117+
return res.body.edge;
118118
}
119119

120120
async save(data: any, opts?: { waitForSync?: boolean }): Promise<any>;

0 commit comments

Comments
 (0)