pub.chive.graph.getHierarchy
Get hierarchical tree structure for nodes of a specific subkind
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · query
| Kind | query |
|---|---|
| Authority | graph.chive.pub |
| Indexed |
Showing version bafyreicmorsdsp7wu2cwj32lhgq6wzdnr75hmuehbtvunsbrry2tdiizfu. Show the latest
Checks
Validunlimited-stringdefs.main.parameters.properties.relationSlugNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.parameters.properties.subkindNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.relationSlugNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.subkindNo maxLength, maxGraphemes or format limits this string.
{
"$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
}