Skip to main content
@usenarrator/plugin-prisma The Prisma plugin reads Prisma Client calls the way the Drizzle plugin reads queries: as the rows they fetch, with each filter, ordering and limit as a bullet. Writes say what is set, including atomic operations like “increased by amount”, and nested create and connect read as related rows. Transactions read as “all-or-nothing”.
The plugin declares library: { name: "@prisma/client", versions: ">=6 <8" } and reads Prisma 6 and 7, including the v7 driver adapters. It narrates files that import Prisma Client (or a generated client), use a prisma handle imported from your own code, or belong to a package that depends on Prisma (see Dependency detection). Drizzle’s relational queries and other SDKs are left alone, and raw SQL stays with the SQL plugin.

Examples

Reads
English
Writes
English
An interactive transaction
English

What it covers

  • Reads: findMany, findUnique, findFirst and their OrThrow forms, with where filters (including relation and list filters), select, include, orderBy, take, skip, cursors and compound unique keys.
  • Aggregates: count, aggregate and groupBy.
  • Writes: create with nested create and connect, createMany, update with atomic number operations, updateMany, upsert, delete and deleteMany.
  • Transactions in both the array form and the interactive form, with their options.
  • The client: new PrismaClient with driver adapters and logging, $extends with computed fields and model methods, and prisma.config.ts.

Translating

The English phrasebook is exported as en and typed as PrismaPhrases.