Skip to content

One-hop neighbour counts for many nodes

POST
/v1/degree
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" }'
Media typeapplication/json
object
ids
required
Array<string>
<= 5000 items
direction
required
string
predicates
Array<string>
distinct
boolean
branchId
string

Example generated

{
"ids": [
"example"
],
"direction": "example",
"predicates": [
"example"
],
"distinct": true,
"branchId": "example"
}

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
}