We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ea3d7 commit bb8b938Copy full SHA for bb8b938
tests/Integration/Neo4jQueryAPIIntegrationTest.php
@@ -44,6 +44,21 @@ public function testCounters(): void
44
$this->assertEquals(1, $result->getQueryCounters()->getNodesCreated());
45
}
46
47
+ public function testCreateBookmarks(): void
48
+ {
49
+ $result = $this->api->run(cypher: 'CREATE (x:Node {hello: "world"})');
50
+
51
+ $bookmarks = $result->getBookmarks();
52
53
+ $result = $this->api->run('CREATE (x:Node {hello: "world2"})');
54
55
+ $bookmarks->addBookmarks($result->getBookmarks());
56
57
+ $result = $this->api->run(cypher: 'MATCH (x:Node {hello: "world2"}) RETURN x', bookmarks: $bookmarks);
58
59
+ $this->assertCount(1, $result);
60
+ }
61
62
public function testTransactionCommit(): void
63
{
64
// Begin a new transaction
0 commit comments