Ok I think I figured it out. *distinct*() requires a *field name* for which 
it searches within a collection of records. I think in the example above 
above I have tried to pass a set to *distinct*. I guess I should have 
believed the documentation. This works:

select distinct(car) from (
  select expand(out('Owns')) from Person where name = 'Dave'
)

This seems to work too, but not sure yet why:

select out('Owns')[car] from Person where name = 'Dave'


-- 

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