Hi Dave,
Use rather:

SELECT userid, name FROM (
  SELECT expand( out('isFriendOf') ) FROM User WHERE userid =
'12345678-ABCD'
)

Lvc@

ᐧ

On 15 October 2014 10:36, David J Lima <[email protected]> wrote:

> This might not strictly be limited to the way Orient works, but I haven't
> found the answer.
>
> Say we have a select command such as:
>
> SELECT out('isFriendOf').userid, out('isFriendOf').name FROM User WHERE
> userid = '12345678-ABCD'
>
> returns for example:
>
> "out": [
>     "670cfaed-a023-45f7-a8dd-c8dde46736c6",
>      "bef94a4a-4b4d-48d8-9f29-7fbe436bce63",
>       "51a6493a-b745-4098-92d9-02c29f8e7fd4"
> ],
> "out2": [
>         "Nathan",
>         "John",
>         "Bill"
> ]
>
>
> Is the result out[*n*] guaranteed to correspond to same record as the
> result out2[*n*]?
>
> --
>
> ---
> 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.
>

-- 

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