One-hop neighbour counts for many nodes
POST
/v1/degree
const url = 'http://localhost:8090/v1/degree';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"ids":["example"],"direction":"example","predicates":["example"],"distinct":true,"branchId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8090/v1/degree \ --header 'Content-Type: application/json' \ --data '{ "ids": [ "example" ], "direction": "example", "predicates": [ "example" ], "distinct": true, "branchId": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
ids
required
Array<string>
direction
required
string
predicates
Array<string>
distinct
boolean
branchId
string
Example generated
{ "ids": [ "example" ], "direction": "example", "predicates": [ "example" ], "distinct": true, "branchId": "example"}Responses
Section titled “Responses”Counts per requested id
Media typeapplication/json
object
rev
integer
counts
object
key
additional properties
integer
truncated
boolean
Example generated
{ "rev": 1, "counts": { "additionalProperty": 1 }, "truncated": true}