OrientDB SELECT and subqueries -


i'm puzzled this. why works:

select out('posted').out('isfromcategory') #18:1 

and not:

select out('isfromcategory') (select out('posted') #18:1) 

that's not me real logic, came doing tests...

as realised, need use expand in subquery, like

select out('isfromcategory') (select expand(out('posted')) #18:1) 

it's subquery without expand returns list of @rid, there's nothing select there, while after expanding, list whole entities (vertices) can traverse edge have.

(not sure why behaves differently first query. maybe, because first 1 query , ask explicitly traverse, whereas second 2 queries , when subquery returns doesn't know want whole vertex retrieved).


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -