I am new to Neo4j. I have the following query in which I tried to parametrize the depth
value for the relationship and it shows an error, If I remove parametrizing the depth
value it works perfectly.
$query="MATCH (a:user{id:{usd}})-[:likes*1..{depth}]->(b:product{id:{pid}})
return a";
$result = new Everyman\Neo4j\Cypher\Query($client, $query,
array('usd' => 1234,'depth' => 3,'pid'=>3456));
Please help, Thanks in advance