I have a graph like this:
User-----("Connected" weight prop.)----->Stuff<-----("Connected" weight
prop.)-----User
What I need is to find all Users, that can be reached through relations via
Stuff. First while traversing I get all edges from Stuff's that source user
is connected to, except those edges, that are outgoing from source User.
Then I make a projection, that should select weight of the Edge from source
user to Stuff, that is connected to currently being fetched Edge. I need
this to sum weights of edges that connect Users.
If I specialize in projection the Stuff's @rid by hand like this:
let $c = (select weight from (select expand(outE('Connected')) from
#11:285) where in = '12:215' ) it works as supposed.
Also it works correct when I return from projection current @rid of the
"in":
let $c = (select in from $current) - every element has it's own IN passed
via projection.
But when I try to select specific edge filtered by $current.in - every
element has the same(the very first) result passed, that is corresponding
to the first entity in the returned list.
select *, $c.weight from (select weight, in, out from (select
expand(out('Connected').inE()) from #11:285) where out not = '#11:285')
let $c = (select weight from (select expand(outE('Connected')) from
#11:285) where in in (select in from $current) ))
Greatly appreciate your help.
Thanks!
--
---
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.