Graph Expressions are special filters applied to entity’s ID. Graph Expression is resolved to a set of IDs matching the expression. Graph Expressions are used to query companies within Company Hierarchy structure. Graph expression specifies ID of a company and type of relation. It is then resolved to set of IDs of companies that are in specified relation with one whose ID was specified.
Available types of relations:
parent - company’s parent in relation tree
siblings - children of company’s parent in relation tree
children - children of company in relation tree
subtree - all companies in subtree rooted in company’s node in relation tree
root - root of company’s relation tree
ancestors - all companies on path from company to root of relation tree
For now graph expressions are only supported for companies.
The example query returns names and IDs of companies that are direct children of company with ID 56789 (which is BigCompany US):
Changing association parameter to siblings would result with following response: