[WIP] Query API first steps #897
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What we did, commit by commit
inline use-neo4j
Copy pasted the
use-neo4j
library and removed everything we weren't using neodash.bump the driver
Bumped the driver to
5.12.0
and re-did some of the reverted compat changesuse new driver
We removed the driver dependency completely and copy pasted in the experimental driver with Query API support that @bigmontz from the drivers team has made. We checked out the
5.x-experimental-http-scheme
branch, installed dependencies, ran the build command and then copied the standalone filepackages/neo4j-driver-lite/lib/browser/neo4j-lite-web.esm.js
and then updated the import paths. In the future we'd not need to do this, we'd depend on the code vianpm
proof of concept
We hardcoded the protocol to be HTTP. We tried using the new driver and got it to work o.k. for some data types. We ran into a couple of limitations:
session.run
was not availableidentity
was not available, onlyelementId
inject HTTP driver experimental package
Replace inlined driver-lite with npm package
Migrate to elementId
For testing the query api with a real database, we downloaded neo4j
5.19.0
and setserver.http_enabled_modules=BROWSER,QUERY_API_ENDPOINTS,TRANSACTIONAL_ENDPOINTS
in theneo4j.conf
file.Still to todo on the neodash side
SHOW DATABASES
against thesystem
database.