Skip to Content

Neo4j libraries for TypeScript, compared

There are a handful of ways to use Neo4j from TypeScript: the official driver, the Neo4j GraphQL Library, object-graph mappers such as neogma and neode, and Cyphra, a Prisma-style ORM with a schema file, a generated client and migrations. Each page below says what the other tool does well, where Cyphra differs, and when to choose the other one. Competitor facts are checked against their own docs, npm and GitHub, with sources at the bottom of each page.

Which one fits

You wantLook at
Prisma’s workflow (schema, generate, migrate) on Neo4jCyphra
A GraphQL API generated from type definitions@neo4j/graphql, or @cyphra/graphql for the same v7 API with migrations
Models as TypeScript classes with value validationneogma
Hand-written Cypher with no extra layerneo4j-driver
Constraints, indexes and data changes as versioned migrationsCyphra migrations

Prisma itself does not support Neo4j; the Prisma-style ORM page has the details and sources. Neo4j-OGM is a Java library, covered on the neogma and neode page.

New to the terms? Start with ORM vs OGM and property graph in the glossary.