Skip to content

Commit 51af680

Browse files
committed
Merge pull request #28 from canibanoglu/graph-types
export graph-types under 'types' key
2 parents 3447cbb + 80f2470 commit 51af680

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/v1/index.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
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

@@ -28,6 +29,15 @@ export default {
2829
int: int,
2930
isInt: isInt,
3031
auth : {
31-
basic : (username, password) => { return { scheme:"basic", principal : username, credentials : password };}
32+
basic: (username, password) => {
33+
return {scheme: "basic", principal: username, credentials: password};
34+
}
35+
},
36+
types : {
37+
Node : Node,
38+
Relationship : Relationship,
39+
UnboundRelationship: UnboundRelationship,
40+
PathSegment : PathSegment,
41+
Path : Path
3242
}
3343
}

0 commit comments

Comments
 (0)