Breadth-first walk over links from `from_nodes` (`{"paths": [...]}` and/or `{"table", "where"}`).
const url = 'https://example.com/datanotes/operations/graph_traverse/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"from_nodes":{},"direction":null,"edges":null,"tables":null,"through":null,"min_depth":null,"max_depth":null,"limit":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_traverse/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "from_nodes": {}, "direction": null, "edges": null, "tables": null, "through": null, "min_depth": null, "max_depth": null, "limit": null }'Breadth-first walk over links from from_nodes ({"paths": [...]} and/or {"table", "where"}).
direction: out (default, follow links), in (follow backlinks) or both.edges: edge labels to follow (link columns such aspeople,event, orlink).tables: return only notes of these tables;through: only walk on through these tables.min_depth(default 1) /max_depth(default 2, max 10),limit(default 500).
Each node comes with depth and via (one shortest route). Example — moods tied to events
with Alice: from {"table": "person", "where": {"name": "Alice"}}, direction in, edges
["people", "event"], tables ["mood"], max_depth 2. Feed the paths to select_rows with
where: {"path": {"in": [...]}} to aggregate them.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Responses
Section titled “Responses”Done.
object
Start notes.
Notes reached, by depth.
object
One shortest route from a start note.
One link followed.
object
Note path the step starts at.
Edge label: the link column, or link for other links.
Out: from links to to; in: to links to from.
Note path reached.
limit was reached.
Example
{ "nodes": [ { "via": [ { "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"}