If I am not mistaken that would return all verticies of class Class having at least one incoming or outgoing edge with r=true. However that would also include Verticies which are not (transitively) connected between themselfs and it also doesn't take into account edge orientation.
I would suggested to experimet with WHILE and $current. My idea is something like traverse while $current has an outgoing edge with r=true. Or I think it might be done quite easily with Gremlin, if that is an option. Dne pondělí 5. října 2015 9:45:57 UTC+2 [email protected] napsal(a): > > Hi Sung, > > Try this: > > select from Class where @rid in (select out from permissions where r=true) > or @rid in (select in from permissions where r=true) > > Regards, > Michela > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
