Direct neighbours of notes: what they link to (`out`) and what links to them (`in`,
const url = 'https://example.com/datanotes/operations/graph_neighbors/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"from_nodes":{},"direction":null,"edges":null}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/datanotes/operations/graph_neighbors/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "from_nodes": {}, "direction": null, "edges": null }'Direct neighbours of notes: what they link to (out) and what links to them (in,
backlinks), with counts per edge label. direction: out, in or both (default).
from_nodes selects the notes: {"paths": [...]} and/or {"table": ..., "where": {...}}.
Edges are labelled with their link column (people, event, …) or link for other links.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Responses
Section titled “Responses”Done.
object
One entry per start note.
object
Start note.
Edges per direction:label.
object
object
Example
{ "nodes": [ { "edges": [ { "direction": "out" } ] } ]}Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Missing or wrong bearer token.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Unknown table, view, migration, note or folder.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}Ambiguous table name: it matches several tables (paths or tables lists them).
object
The tables’ folders the name matches.
The qualified tables the name matches.
Example generated
{ "error": "example", "paths": [ "example" ], "tables": [ "example" ]}Unexpected error.
object
What went wrong, for a person or an agent.
Example generated
{ "error": "example"}