QueryAssociation( source as noderef, associationType as string, target as noderef ) as list of association
- The noderef of the parent node being checked
- A string representing the type of association between the nodes
- The noderef of the child node being checked
This is an exposed function which creates a list of all of the associations between two different nodes. If any of the fields are null, then it is a wildcard which checks for all nodes or association types, as appropriate.
There are other specialized functions for common queries. For more information, please see the section on Associations.
q as list of association = QueryAssociation(none, "", none) foreach a in q nodeID as ID = a.source println("Found an association. Source node is: " + nodeID) .