Try

CREATE EDGE FROM #14:59 to (SELECT *rid *FROM INDEX:program.path WHERE key 
= '<whatever>')

or 

CREATE EDGE FROM #14:59 to (SELECT expand(*rid) *FROM INDEX:program.path 
WHERE key = '<whatever>')

One of them should certainly work.


On Tuesday, June 16, 2015 at 12:23:47 PM UTC-7, Scott Orr wrote:
>
> I'm trying to create (lightweight) edges between two vertices.
>
> This code works:
>
> "CREATE EDGE FROM #14:59 TO (SELECT FROM program WHERE path = 
> '<whatever>'')"
>
> This one doesn't, even though the embedded query works just fine on its 
> own:
>
> CREATE EDGE FROM #14:59 to (SELECT FROM INDEX:program.path WHERE key = 
> '<whatever>')
>
>
> Any idea what's going on?
>

-- 

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