Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-25-2020 09:59 AM
Question :
Condition :
Data Base Details :
Problem Faced
I am using the query below -
MATCH (p)
call apoc.neighbors.athop(p,'KNOWS', 2) yield node
with collect(id(node)) as d3node,p
call apoc.neighbors.athop(p,'KNOWS', 3) yield node
with collect(id(node)) as d4node,p,d3node
CALL apoc.path.expandConfig(p, {
relationshipFilter: "KNOWS",
blacklistNodes: d4node
endNodes:d3node,
uniqueness:'NODE_PATH'
})YIELD path
with [r in relationships(path) | r.foo ] as foo, [n in nodes(path) | n.foobar] as nfoobar,p
with reduce(res = 1 , w in foo | res * w) as prod,nfoobar,p
return prod
PROFILE
and EXPLAIN
]All the sessions of the conference are now available online