Skip to content

Commit 52e09ae

Browse files
author
Can Ibanoglu
committed
export graph-types under 'types' key
1 parent 9a6d9b4 commit 52e09ae

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/v1/index.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,19 @@
2020
import {int, isInt} from './integer';
2121
import Driver from './driver';
2222
import {VERSION} from '../version';
23+
import {Node, Relationship, UnboundRelationship, PathSegment, Path} from './graph-types'
2324

2425
let USER_AGENT = "neo4j-javascript/" + VERSION;
2526

2627
export default {
2728
driver: (url) => new Driver(url, USER_AGENT),
28-
int: int,
29-
isInt: isInt
29+
int : int,
30+
isInt : isInt,
31+
types : {
32+
Node : Node,
33+
Relationship : Relationship,
34+
UnboundRelationship: UnboundRelationship,
35+
PathSegment : PathSegment,
36+
Path : Path
37+
}
3038
}

0 commit comments

Comments
 (0)