If I have the following query
select * from cypher('agload_test_graph', $$
match (n) with n where n.name='A' return n
$$) as (sp agtype)
then n.name='A'
doesn't work.
but if I remove with
clause, then it works:
select * from cypher('agload_test_graph', $$
match (n) where n.name='A' return n
$$) as (sp agtype)
I tried the example query in age document.
SELECT *
FROM cypher('graph_name', $$
MATCH (david {name: 'David'})-[]-(otherPerson)-[]->()
WITH otherPerson, count(*) AS foaf
WHERE foaf > 1RETURN otherPerson.name
RETURN otherPerson.name
$$) as (name agtype);