Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To obtain all the child labels belonging to a parent label in Apache AGE, you can use the following query:

MATCH (parent:Label)-[:PARENT_OF]->(child:Label)
WHERE parent.label_name = 'Parent_Label_Name'
RETURN child.label_name

Replace 'ParentLabelName' with the name of the parent label you are interested in. This query will return all the child labels that are related to the parent label through the PARENT_OF relationship.