neo4j - Neo4jPhp count Result retrieval -
in neo4jphp, result use
foreach ($result $row) { echo $row['x']->getproperty('name') . "<br>"; }
but when query
match (n) return count(n)
how retrieve result?
i tried
echo $row['x']->getproperty('0')
but it's not working. how count result not have field name?
on using
echo $row['x']->getproperty('count(n)')<>
i error:
fatal error: call member function getproperty() on non-object in d:\xampp\htdocs\abcd\index.php on line 17
try changing query to:
match (n) return count(n) c;
then, try:
echo $row['c']
Comments
Post a Comment