I could not find this question answered anywhere, though I expect it common.

I have a server function that gets a Person's ancestors

Function: GetAncestors
Parameters: rid


select * from (traverse out('IsChildOf') from " + rid + ") where $depth >= 1 
order by $path"


Now when I get my list of people

select *, GetAncestors(@rid) as Ancestors from Person order by Name

The ancestors are returned simply as rids.  Is there a way to get the 
actual record?  I noticed that if I change my GetAncestors function, and 
specify specific properties instead of "*", the list of people will now 
have records for the ancestors.  My problem is that I cannot hard code the 
properties in the function as there is not a set schema for a Person.  I 
know this shouldn't be the default behavior, for cases of a giant set of 
records, but is there a way to force this for specific cases?

-- 

--- 
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.

Reply via email to