Hi Thomas, 
yes, with 2.8 there is no better way to do this.

We already saw the need to include the start vertex in a reply and 
implemented it. However since that was a major change to the internal 
facilities, it will not become available in the 2.8.x series.
However, with ArangoDB 3.0 you will be able to do:

FOR f in 0..1 OUTBOUND 'users/123' follows RETURN f) 

Cheers, 

Willi

On Wednesday, June 8, 2016 at 8:26:17 AM UTC+2, Thomas Weiss wrote:
>
> Hi there,
>
> In some AQL query, I need to iterate over all docs connected to a starting 
> doc through some edge type + the starting doc itself. The way I'm doing 
> this currently is:
> LET followings = (FOR f in 1 OUTBOUND 'users/123' follows RETURN f) 
> FOR following in UNION(followings, [ DOCUMENT('users/123') ]) 
> ...
>
>
> Is this the right/best way to achieve that, or would there be another AQL 
> construct that would be suitable?
>
> Thanks in advance,
> Thomas
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" 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