Hi,If you haven't noticed it: the title of this thread is dedicated to Metallica (*singing in my head*). But I'm not here to talk about music :)Hi try to make a Cypher query to compare the ways people are linked together.Here is the query :start
n = node:names(email='test@test..com')
match
p = n-[r:connect*1..5]->m,
n-[r2?:connect]->m
where
m <> n return distinct m,
min(length(p))
order by min(length(p))
skip 0 limit 5So I open the console in the webadmin, copy and paste the query, then... I wait while my computer is getting hotter and louder. After 10 minutes I end up killing the process.
I think the issue comes from the 4th line with the question mark "?". Indeed, if I try to execute the following query it works. (Except that the results does not fit my need) :start
n = node:names(email='te...@test.com')
match
p = n-[r:connect*1..5]->m,
n-[r2:connect]->m
where
m <> n return distinct m,
min(length(p))
order by min(length(p))
skip 0 limit 5
So I wonder if it is something which can be fixed on the Neo4j side, or my query is simply bad designed ?
That's cool. Could you do a short blog ans set this up with a console.neo4.org link? Would be nice to see it visually :-)