neo4j-driver-javascript-skill

Official

Connect Neo4j from JS/TS with confidence

Authorneo4j-contrib
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the challenge of reliably wiring the official Neo4j JavaScript/TypeScript driver into a Node.js or browser app, including correct query execution patterns, safe transaction handling, and the tricky conversion of Neo4j types like Integer for JSON and APIs.

Core Features & Use Cases

  • Driver lifecycle and connection setup: Create a single shared driver, choose the right URI scheme (including Aura vs local), and verify connectivity on startup.
  • Safe query execution APIs: Use executeQuery for most cases, executeRead/executeWrite for managed transactions with auto-retry, and session.run for implicit transaction scenarios like LOAD CSV.
  • Correct result consumption and data handling: Access records via record.get, consume streams inside transaction callbacks, and avoid common pitfalls with JSON serialization of Integer and temporal types.
  • TypeScript support and errors: Apply key TypeScript types (Driver, Session, ManagedTransaction, Node<Integer>) and handle Neo4jError codes like SERVICE_UNAVAILABLE and constraint validation failures.
  • Batch operations: Perform efficient batch writes using UNWIND with proper parameter handling for integers.

Quick Start

Use the neo4j-driver-javascript-skill to write a minimal JS/TS example that connects to Neo4j with executeQuery, retrieves record values with record.get, and safely converts Neo4j Integers for JSON output.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: neo4j-driver-javascript-skill
Download link: https://github.com/neo4j-contrib/neo4j-skills/archive/main.zip#neo4j-driver-javascript-skill

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.