create and connect read as related rows. Transactions read as “all-or-nothing”.
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,findFirstand theirOrThrowforms, withwherefilters (including relation and list filters),select,include,orderBy,take,skip, cursors and compound unique keys. - Aggregates:
count,aggregateandgroupBy. - Writes:
createwith nestedcreateandconnect,createMany,updatewith atomic number operations,updateMany,upsert,deleteanddeleteMany. - Transactions in both the array form and the interactive form, with their options.
- The client:
new PrismaClientwith driver adapters and logging,$extendswith computed fields and model methods, andprisma.config.ts.
Translating
The English phrasebook is exported asen and typed as PrismaPhrases.