Skip to content

Commit 7b08bc5

Browse files
authored
Merge pull request #316 from slapersonne/patch-1
[#315] Fixes PathSegment constructor
2 parents 74b7d84 + 4b34b8b commit 7b08bc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/types/v1/graph-types.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const rel2Props: object = rel2.properties;
4343

4444
const pathSegment1: PathSegment = new PathSegment(node1, rel1, node1);
4545
const pathSegment1Start: Node = pathSegment1.start;
46-
const pathSegment1Rel: Relationship = pathSegment1.rel;
46+
const pathSegment1Rel: Relationship = pathSegment1.relationship;
4747
const pathSegment1End: Node = pathSegment1.end;
4848

4949
const path1: Path = new Path(node1, node1, [pathSegment1]);

types/v1/graph-types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ declare class UnboundRelationship {
6363

6464
declare class PathSegment {
6565
start: Node;
66-
rel: Relationship;
66+
relationship: Relationship;
6767
end: Node;
6868

6969
constructor(start: Node,

0 commit comments

Comments
 (0)