Skip to content

Instantly share code, notes, and snippets.

@ikwattro
Created December 7, 2017 09:07
Show Gist options
  • Save ikwattro/bbb8c140946b5b1fd52395ed3b15a1db to your computer and use it in GitHub Desktop.
Save ikwattro/bbb8c140946b5b1fd52395ed3b15a1db to your computer and use it in GitHub Desktop.
class MyController
{
private $client;
public function __construct(Client $client)
{
$this->client = $client;
}
public function doSomeQueries()
{
// Query DB 1
$result = $this->client->run('MATCH (n) RETURN count(n)', null, null, 'server1');
// Query DB 2
$result2 = $this->client->run('MATCH (n) RETURN count(n)', null, null, 'server2');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment