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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -