Skip to main content

TreeQueryMethod

How a tree query traverses the tree.

typeTreeQueryMethodType (string)required

Traversal to apply from the anchor nodes. Required.

Enum ValueDescription
NODEWithout anchors, the root nodes; with anchors, the anchor nodes themselves (on the custom tree, only with includeSelected true).
NODE_CHILDThe direct children of each anchor.
NODE_PARENTSThe nodes matching text and the anchors, plus their ancestors (survey trees: up to 6 levels; custom tree: no limit).
NODE_HIERARCHYAll descendants of each anchor (survey trees: up to 6 levels).
NODE_FULL_HIERARCHYAncestors and descendants of each anchor. Not supported by the custom tree.
ALLEvery node that passes the filters. In the survey trees it takes no anchors.

Possible values: [NODE, NODE_CHILD, NODE_PARENTS, NODE_HIERARCHY, NODE_FULL_HIERARCHY, ALL]

TreeQueryMethod
{
"type": "NODE"
}