Hello community, I'm new with Neo4j, I'm connecting from php, I just installed the neo4j server with the basic configuration, I try to make a request to the server with this code:
require_once 'vendor/autoload.php';
use GraphAware\Neo4j\Client\ClientBuilder;
$client = ClientBuilder::create()
->addConnection('bolt', 'bolt://neo4j:password@localhost:7687')
->build();
$query = "MATCH (n:Person)-[:FOLLOWS]->(friend) RETURN n.name, collect(friend) as friends";
$result = $client->run($query);
foreach ($result->getRecords() as $record) {
echo sprintf('Person name is : %s and has %d number of friends', $record->value('name'), count($record->value('friends'));
}
and I get the following error: cURL error 7: Failed to connect to localhost port 7474: Connection refused (see link )