Skip to navigation

List node neighbors

Authentication

AuthorizationApi-Key

Type “Api-Key” followed by a space and the project API key.

Path parameters

graph_uuidstringRequired
The UUID of the graph. For a user graph, you can also use the UUID of the user.
node_uuidstringRequired
Node UUID

Query parameters

page_sizeintegerOptional1-100Defaults to 50

The maximum number of items in one page. The SDK method returns a pager. In Python, .items holds only the first page. In TypeScript, .data holds only the first page. To read every page, iterate the pager: use for or list(...) in Python, or for await in TypeScript. In Go, the method returns one page, and Iterator() reads all pages.

cursorstringOptional
Opaque page cursor
order_byenumOptional
Sort field
Allowed values:
orderenumOptional

Sort direction: asc or desc

Allowed values:

Request

Request body
directionenumOptional

The edge orientation to follow from the node: in, out, or both.

Allowed values:
filtersobjectOptional
Filters constraining the connecting edges and the neighbor nodes.

Response

OK
itemslist of objectsOptional
The neighboring nodes and their connecting edges on this page.
next_cursorstringOptional

The cursor to pass as the next request’s cursor to fetch the following page; absent when no further pages remain.

total_sizeintegerOptional

Omitted for this collection; use next_cursor to detect the end of pagination.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error