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.
Prisma for Neo4j: the Prisma-style ORMCyphra vs the Neo4j GraphQL LibraryCyphra vs neogma and neodeCyphra vs neo4j-driverBenchmarks
Which one fits
| You want | Look at |
|---|---|
| Prisma’s workflow (schema, generate, migrate) on Neo4j | Cyphra |
| 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 validation | neogma |
| Hand-written Cypher with no extra layer | neo4j-driver |
| Constraints, indexes and data changes as versioned migrations | Cyphra 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.