From 52e09ae4ffd1d6c149abbd213415c74c772ba23b Mon Sep 17 00:00:00 2001 From: Can Ibanoglu Date: Mon, 15 Feb 2016 17:45:26 +0200 Subject: [PATCH] export graph-types under 'types' key --- src/v1/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/v1/index.js b/src/v1/index.js index 1225d5b61..04c5a6417 100644 --- a/src/v1/index.js +++ b/src/v1/index.js @@ -20,11 +20,19 @@ import {int, isInt} from './integer'; import Driver from './driver'; import {VERSION} from '../version'; +import {Node, Relationship, UnboundRelationship, PathSegment, Path} from './graph-types' let USER_AGENT = "neo4j-javascript/" + VERSION; export default { driver: (url) => new Driver(url, USER_AGENT), - int: int, - isInt: isInt + int : int, + isInt : isInt, + types : { + Node : Node, + Relationship : Relationship, + UnboundRelationship: UnboundRelationship, + PathSegment : PathSegment, + Path : Path + } }