Has anyone figured out how to return the parent classes of a vertex as a projection? When I get the vertex, I need to know what it's parent classes are. So if I get a Square classed vertex, I need to know that it is of a sub class of Rectangle and Shape.
On Monday, February 2, 2015 at 11:45:28 AM UTC-5, Chris Whalen wrote: > > I have been digging through the java api javadocs as well as the > documentation, but I cannot figure out how to get the full class ancestry > of a vertex. I think I can write a separate query against the schema to > return the ancestry but it would be best to have it returned in the > original query so that I do not have to do multiple queries when working > with millions of documents. I was thinking, something along the lines of: > > select @rid, @class, @ancestors from V > > Is this possible? > -- --- 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.
