neo4jphp - Get relationship type in a php variable of neo4j -


what want that: have 2 nodes id 1 , id 2. has relationship type (id:1)-[r:knows]->(id:2). query working fine in neo4j localhost not able store relationship type in php variable use further. using graphware.

note: $id = 1 , $s_id = 2.

$querystring = "match (a:signup{iid:'$id'})-[r]->(b:signup{iid:'$s_id'}) return type(r) ";  $query = new everyman\neo4j\cypher\query($client, $querystring);  $result = $query->getresultset();  if($result == 'knows') {     $s_relation = $result; } else {     $s_relation = 'empty'; } 

it returns else part empty.

thank you.

well, found solution this.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -