-
-
Save skynet/5754507 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client = new Everyman\Neo4j\Client(); | |
$queryString = | |
"START firstPerson=node({firstId}), secondPerson=node({secondId}) " . | |
"MATCH firstPerson -[:FRIEND]-> mutualFriend <-[:FRIEND]- secondPerson" . | |
"RETURN mutualFriend"; | |
$params = array( | |
"firstId" => 123, | |
"secondId" => 456 | |
); | |
$query = new Everyman\Neo4j\Cypher\Query($client, $queryString, $params); | |
$results = $query->getResultSet(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment