Class QueryPath describes special type of query to calculate path (i.e list of objects) between two given objects. The use case is to get a path in several trees using the same leave objects. Note for composite objects and exclusive relationships, the usage of reverse composite relationships is more effective. In such case there is the only tree built on top of given leaves.
- Example
The example of query is shown below: "(path-to "my-id@my-class" (direct "A" "B" (nested "N" (direct "X" "Y" "Z"))))"
The destination object is "my-id@my-class". The search can be started from any object of any class. In our example the start object has to have two relationships named "A" and "B". An object referenced via "A" and "B" should have relationship "N". In our example it is possible to lookup for path via nested objects linked via relationship "N". Finally all objects referenced via "N" should have relationships "X", "Y" and "Z". If the destination object is referenced by them, the path is found. The result of path query execution is list of objects between the start and the destination object.
Definition at line 382 of file query.hpp.