Skip to main content
Prisma Documentation Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

Prisma Client (Prisma ORM v7)

Prisma Client is Prisma ORM's generated, type-safe query builder for Node.js, Bun, and Deno applications.

Prisma Client is Prisma ORM's generated query builder. It is tailored to your schema, fully typed, and designed to make common database work feel like ordinary application code.

  • Typed query methods based on your models
  • Autocomplete for filters, relations, ordering, and nested writes
  • Predictable plain JavaScript objects as query results
  • A single client API that works across PostgreSQL, MySQL, SQLite, MongoDB, and more
schema.prisma
generator client {
  provider = "prisma-client"
  output   = "./generated"
}
bun
bun add @prisma/client@7
pnpm
pnpm add @prisma/client@7
yarn
yarn add @prisma/client@7
npm
npm install @prisma/client@7
bun
bunx prisma generate
pnpm
pnpm prisma generate
yarn
yarn prisma generate
npm
npx prisma generate

If you want more detail on this step, see Generating Prisma Client.

TypeScript
import { PrismaClient } from "./generated/client";

const prisma = new PrismaClient();

const users = await prisma.user.findMany();
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu