Get the Degree of a Node By Node Type
Retrieve the number of relationships an existing node has by type and key
:GET /db/{graph}/node/{type}/{key}/degree
:GET /db/{graph}/node/{type}/{key}/degree/{direction [all, in, out]}
:GET /db/{graph}/node/{type}/{key}/degree/{direction [all, in, out]}/{type TYPE_ONE}
:GET /db/{graph}/node/{type}/{key}/degree/{direction [all, in, out]}/{type(s) TYPE_ONE&TYPE_TWO}
Example Request:
:GET /db/rage/nodes/User/max/degree/all/LOVES
Example Response:
{ "degree": 3 }