{
"id": "pub.chive.graph.getHierarchy",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"roots",
"subkind",
"relationSlug"
],
"properties": {
"roots": {
"type": "array",
"items": {
"ref": "#hierarchyItem",
"type": "ref"
},
"description": "Root nodes with children"
},
"subkind": {
"type": "string",
"description": "Subkind of hierarchy"
},
"relationSlug": {
"type": "string",
"description": "Relation used for hierarchy"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"subkind"
],
"properties": {
"subkind": {
"type": "string",
"description": "Subkind to get hierarchy for (e.g., field)"
},
"relationSlug": {
"type": "string",
"default": "broader",
"description": "Relation slug for hierarchy traversal"
}
}
},
"description": "Get hierarchical tree structure for nodes of a specific subkind"
},
"hierarchyItem": {
"type": "object",
"required": [
"node",
"children",
"depth"
],
"properties": {
"node": {
"ref": "pub.chive.graph.listNodes#graphNode",
"type": "ref",
"description": "Node data"
},
"depth": {
"type": "integer",
"description": "Depth in hierarchy (0 = root)"
},
"children": {
"type": "array",
"items": {
"ref": "#hierarchyItem",
"type": "ref"
},
"description": "Child hierarchy items"
}
},
"description": "Hierarchy node with recursive children"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}
Metadata
- DID
-
did:plc:7natp5xae72bddaqlkef2t4e
- CID
-
bafyreicmorsdsp7wu2cwj32lhgq6wzdnr75hmuehbtvunsbrry2tdiizfu
- Indexed At
- 2026-05-04 17:29 UTC
- AT-URI
-
at://did:plc:7natp5xae72bddaqlkef2t4e/com.atproto.lexicon.schema/pub.chive.graph.getHierarchy