I am not able to get why this apache agedb behaviour is not returning correct result in the following query when alias in not defined
SELECT * from cypher('sample_graph', $$
CREATE (a:Part {part_num: '111'}),
(b:Part {part_num: '222'}),
(c:Part {part_num: '333'})
$$) as (a agtype);
When I execute the following query with alias, it returns the correct count, 3 as a result.
sampledb=# SELECT * from cypher('sample_graph', $$ match (a:Part) return count(*) $$) as (result agtype);
When I execute the following query without alias, it return incorrect count, 1 as a result.
sampledb=# SELECT * from cypher('sample_graph', $$ match (:Part) return count(*) $$) as (result agtype);