Created
December 13, 2021 10:51
-
-
Save transistive/5b04f385080889cef1086087f9835f2f to your computer and use it in GitHub Desktop.
query the first 10 movies in alphabetical order
This file contains hidden or 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
$results = $client->run(<<<'CYPHER' | |
MATCH (m:Movie) | |
RETURN m.title AS title | |
ORDER BY m.title | |
ASC LIMIT $limit | |
CYPHER, ['limit' => 10]); | |
foreach ($results as $result) { | |
echo $result->get('title').PHP_EOL; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment