Driver for Deno.land

There is a driver available for Deno?

Hi @shinspiegel,

Welcome to the Neo4j community!

There is no official (or afaik unofficial) driver for Deno.

What happens when you try to load the nodejs driver?

Best,
ABK

Hi @shinspiegel CC @abk

I ported Neo4j Driver version 4.3 to Deno earlier this year: https://github.com/technotes-org/neo4j-javascript-driver

If you're curious the changes that were required, the diff can be seen here.

Mostly it was a matter of changing file paths/extensions in the import statements, but there were actually some typing bugs that Deno caught which somehow weren't caught in the upstream repo, like this import of ALL which doesn't exist in request-message and had to be updated to FETCH_ALL.

Alternatively: since Deno implements web APIs, you should also be able to just use the "browser" version of neo4j-javascript-driver as described in this thread, but it won't have the TypeScript type info. I preferred to port the driver to get full TypeScript support.

1 Like