Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Feature/v4 support #171

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ tests/_reports
tests/database_settings.yml
vendor/
phpunit.xml
.idea
2 changes: 1 addition & 1 deletion src/HttpDriver/Result/StatementStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct(array $statistics = [])
$keys = [
'contains_updates', 'nodes_created', 'nodes_deleted', 'properties_set', 'labels_added', 'labels_removed',
'indexes_added', 'indexes_removed', 'constraints_added', 'constraints_removed', 'relationship_deleted',
'relationships_created',
'relationships_created', 'contains_system_updates', 'system_updates',
];

foreach ($statistics as $key => $value) {
Expand Down
6 changes: 2 additions & 4 deletions src/HttpDriver/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,8 @@ public function prepareRequest(Pipeline $pipeline)
'statements' => $statements,
]);
$headers = [
[
'X-Stream' => true,
'Content-Type' => 'application/json',
],
'X-Stream' => true,
'Content-Type' => 'application/json',
];

return $this->requestFactory->createRequest('POST', sprintf('%s/db/data/transaction/commit', $this->uri), $headers, $body);
Expand Down
4 changes: 2 additions & 2 deletions tests/Issues/Issue40Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public function testIssue()
$this->emptyDb();
$this->client->run('CREATE (:BRIEF {id: 123})');

$query = 'MATCH (s:BRIEF {id:{brief_id}})
$query = 'MATCH (s:BRIEF {id: $brief_id})
CREATE (n:BRIEFNOTECARD)
SET n += {data}
SET n += $data
CREATE (n)-[:CARD_OF {order:0}]->(s)
RETURN n';

Expand Down