> So this works:
>
{
"query" : "MATCH n-[r]-m WHERE id(n) = 0 WITH CASE WHEN startnode(r)=n
THEN (CASE WHEN endnode(r)=n THEN ' SELF' ELSE ' OUT' END) ELSE ' IN' END
as direction,type(r) as typer,REDUCE(acc = '', p IN labels(m)| acc + ' :'+
p) AS mlabels,r WITH typer+mlabels+direction AS reltype WHERE reltype IN
{reltypes} RETURN reltype,count(*)",
"params": {
"reltypes": [
"KNOWS :Person SELF",
"KNOWS :Person IN",
"KNOWS :Person OUT",
"CONTAINS :Prologram :Diagram IN"
]
}
}
--
You received this message because you are subscribed to the Google Groups
"Neo4j" 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.