Query shortest path with conditions on Orient-db

135 views Asked by At

We are working with OrientDB (V 2.2.30) and using ‘shortestPath’ function.

We want to get the shortest path between 2 vertices but only a path that applies to a condition on a specific field such as "Status=Active". i.e. if one of the items within the shortest path doesn't match to the condition "Status=Active", the whole path will not come as an output and we will get the "next" shortest path that matches to the condition. We saw in the Orient documentation that there is an additionalParams parameter, But the only parameter Currently allowed is 'maxDepth'.

Is there any way we can get the shortest path with conditions?

0

There are 0 answers