HTTP API

Node Connected

Get the directly connected Relationship(s) of two Nodes By Node Type

Retrieve the relationships between two existing nodes by type and key

:GET /db/{graph}/node/{type}/{key}/connected
:GET /db/{graph}/node/{type}/{key}/connected/{direction [all, in, out]}
:GET /db/{graph}/node/{type}/{key}/connected/{direction [all, in, out]}/{type TYPE_ONE}
:GET /db/{graph}/node/{type}/{key}/connected/{direction [all, in, out]}/{type(s) TYPE_ONE&TYPE_TWO}

Example Request:

:GET /db/rage/nodes/User/max/connected/all/LOVES

Example Response:

[ {"id": 1026, "type": "LOVES", "from": 1026, "to": 1027, "properties": {} }]

Get the directly connected Relationship(s) of two Nodes By Node ID

Retrieve the relationships between two existing nodes by id

:GET /db/{graph}/node/{id}/connected
:GET /db/{graph}/node/{id}/connected/{direction [all, in, out]}
:GET /db/{graph}/node/{id}/connected/{direction [all, in, out]}/{type TYPE_ONE}
:GET /db/{graph}/node/{id}/connected/{direction [all, in, out]}/{type(s) TYPE_ONE&TYPE_TWO}

Example Request:

:GET /db/rage/nodes/1027/connected/all/LOVES

Example Response:

[ {"id": 1026, "type": "LOVES", "from": 1026, "to": 1027, "properties": {} }]