pub.chive.graph.getHierarchy
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"hierarchyItem": {
"description": "Hierarchy node with recursive children",
"properties": {
"children": {
"description": "Child hierarchy items",
"items": {
"ref": "#hierarchyItem",
"type": "ref"
},
"type": "array"
},
"depth": {
"description": "Depth in hierarchy (0 = root)",
"type": "integer"
},
"node": {
"description": "Node data",
"ref": "pub.chive.graph.listNodes#graphNode",
"type": "ref"
}
},
"required": [
"node",
"children",
"depth"
],
"type": "object"
},
"main": {
"description": "Get hierarchical tree structure for nodes of a specific subkind",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"relationSlug": {
"description": "Relation used for hierarchy",
"type": "string"
},
"roots": {
"description": "Root nodes with children",
"items": {
"ref": "#hierarchyItem",
"type": "ref"
},
"type": "array"
},
"subkind": {
"description": "Subkind of hierarchy",
"type": "string"
}
},
"required": [
"roots",
"subkind",
"relationSlug"
],
"type": "object"
}
},
"parameters": {
"properties": {
"relationSlug": {
"default": "broader",
"description": "Relation slug for hierarchy traversal",
"type": "string"
},
"subkind": {
"description": "Subkind to get hierarchy for (e.g., field)",
"type": "string"
}
},
"required": [
"subkind"
],
"type": "params"
},
"type": "query"
}
},
"id": "pub.chive.graph.getHierarchy",
"lexicon": 1,
"revision": 1
}
Metadata
- DID
-
did:plc:egjghlwgts2hlcer2txilxeh - CID
-
bafyreicmorsdsp7wu2cwj32lhgq6wzdnr75hmuehbtvunsbrry2tdiizfu - Indexed At
- 2026-06-18 13:14 UTC
- AT-URI
-
at://did:plc:egjghlwgts2hlcer2txilxeh/com.atproto.lexicon.schema/pub.chive.graph.getHierarchy
Referenced Schemas (1)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
List available relation types (nodes with subkind=relation)
-
List available subkind type nodes (nodes with subkind=subkind)