Skip to main content
method
POST
/query
Authentication: Required (if enabled) Find nodes that are neighbors of all input nodes (set intersection of neighbor sets).

Request

{
  "type": "intersect",
  "nodes": [0, 1, 2]
}
FieldTypeRequiredConstraintsDescription
typestringYes"intersect"
nodesarray of u64YesMax 100 itemsNode IDs to intersect.

Response

{
  "success": true,
  "found": true,
  "path": [5, 8],
  "edges": [],
  "grounding": "inference",
  "error": null
}
The path array contains the node IDs that are connected to all input nodes. When found is false, diagnostic is no_common_neighbors.

Example

curl -X POST http://localhost:8080/query \
     -H "Content-Type: application/json" \
     -d '{"type": "intersect", "nodes": [0, 1, 2]}'
Last modified on February 21, 2026