Hi Tu Pham, I think it should be SELECT name FROM ( SELECT EXPAND( OUT( 'Owns' ) ) FROM Person WHERE name = 'Luca' ) not NAME. It is case-sensitive.
The documentation needs to go through QA before being published. Can the person responsible for updating the documentation please address this? Thanks! On Sunday, May 17, 2015 at 11:48:51 PM UTC-7, Tu Pham Phuong wrote: > > > Hi guys, > > I am a newbie with OrientDB, my OrientDB is 2.0.8. > At this post: > http://orientdb.com/docs/last/Tutorial-Using-schema-with-graphs.html > After create vertex and edge successful, I can't query the link between > Person and Car which created in previous step. > Here is my detail console, please help me to understand this problem. > Thanks a lot. > > Query detail: > > orientdb {db=test}> CREATE VERTEX Person SET name = 'Luca' > > Created vertex 'Person#12:2{name:Luca} v5' in 0.004000 sec(s). > > > orientdb {db=test}> CREATE VERTEX Car SET name = 'Ferrari Modena' > > Created vertex 'Car#13:2{name:Ferrari Modena} v4' in 0.003000 sec(s). > > > orientdb {db=test}> CREATE EDGE Owns FROM ( SELECT FROM Person ) TO ( > SELECT FROM Car ) > > Created edge '[Owns#14:5{out:#12:2,in:#13:2} v5]' in 0.009000 sec(s). > > > *PROBLEM HERE:* > > *orientdb {db=test}> SELECT NAME FROM ( SELECT EXPAND( OUT( 'Owns' ) ) > FROM Person WHERE name = 'Luca' )* > > *----+------* > > *# |@CLASS* > > *----+------* > > *0 |null * > > *----+------* > -- --- 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.
