diff --git a/package.json b/package.json index cf23abf..cb1eb1a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", - "neo4j-driver-lite": "^4.4.1", + "neo4j-driver-lite": "^5.21.0", "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "4.0.3", diff --git a/src/App.js b/src/App.js index a8e5842..31d6d8e 100644 --- a/src/App.js +++ b/src/App.js @@ -73,7 +73,7 @@ function App() { if (newDriver !== null) { try { let session = newDriver.session(); - let result = await session.readTransaction(tx => tx.run(query)); + let result = await session.executeRead(tx => tx.run(query)); await session.close(); console.log(result); const id = setTimeout(async () => await runQueryWhileDriverExists(newDriver), 1000) diff --git a/yarn.lock b/yarn.lock index 2a8c57d..39e2465 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7403,27 +7403,27 @@ neo-async@^2.5.0, neo-async@^2.6.1, neo-async@^2.6.2: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== -neo4j-driver-bolt-connection@^4.4.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/neo4j-driver-bolt-connection/-/neo4j-driver-bolt-connection-4.4.1.tgz#6369929b1e0cdaffd541f2e36ed2a13a2a7579b2" - integrity sha512-wdD2ejTW6VIolwZp8aAcT1a4w45ab8TIoFjQBXgXKKRNTfq5iEc95x0diLqyUJa5vtHh/+IdesX5o5dv9JsZew== +neo4j-driver-bolt-connection@5.21.0: + version "5.21.0" + resolved "https://registry.yarnpkg.com/neo4j-driver-bolt-connection/-/neo4j-driver-bolt-connection-5.21.0.tgz#7cb428432318a8def77e6d901dfc97a9e61ea465" + integrity sha512-CHNZYJ2PhRyG89iPR+IarPjce9eW2ZFSbHwd9+22WiwWeyBnxQc/GZ3biReQGDC0VpOotlvQy9gBWk+4E7fC7A== dependencies: buffer "^6.0.3" - neo4j-driver-core "^4.4.1" + neo4j-driver-core "5.21.0" string_decoder "^1.3.0" -neo4j-driver-core@^4.4.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/neo4j-driver-core/-/neo4j-driver-core-4.4.1.tgz#3fa20f3107012282bbe7d13b12b7b244f890bf7a" - integrity sha512-iG89B+joj0a6fo8U3WRg9AiyLUfyU/R9s4J2o5ug3uMtfGEfwQ6jzLUkiwElkEeF14OaqIj7iXCBU4cFIU/6Gw== +neo4j-driver-core@5.21.0: + version "5.21.0" + resolved "https://registry.yarnpkg.com/neo4j-driver-core/-/neo4j-driver-core-5.21.0.tgz#5eed82306f3115ab6f5eb3131f1b0a8f9af8f8e0" + integrity sha512-YhbaKcDZU3JIzxNH+GIPhsPVvGaLoRhAkqJrgWPhviqOmMON/OggLmnH/x1bms5zvAJMG/7m9BBxC/J8Z3Lkgg== -neo4j-driver-lite@^4.4.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/neo4j-driver-lite/-/neo4j-driver-lite-4.4.1.tgz#925c085cc14171e0abdff6c9650c3d9e98d08fa9" - integrity sha512-QTuNyhtewMxPqQUtayAqLLOMLOYunUvRANjga/eyeypPnwnoHrgviYF+2jYUulB0mq9DgP/NqU+Yi+crtrclgQ== +neo4j-driver-lite@^5.21.0: + version "5.21.0" + resolved "https://registry.yarnpkg.com/neo4j-driver-lite/-/neo4j-driver-lite-5.21.0.tgz#22db0a2ed6804c70de765d9490c3b28effdb6092" + integrity sha512-D6ON2CL+HMD/S28+YfAra2Z/pCdEd740IwUdeNhLBD6Kph+nfz20+VRLcjXBBsy1wS1gTU8blZRzF7yAY8yKSw== dependencies: - neo4j-driver-bolt-connection "^4.4.1" - neo4j-driver-core "^4.4.1" + neo4j-driver-bolt-connection "5.21.0" + neo4j-driver-core "5.21.0" next-tick@~1.0.0: version "1.0.0"