Prisma Client
Prisma Client (Prisma ORM v7)
Introduction to Prisma Client (Prisma ORM v7)
Generating Prisma Client (Prisma ORM v7)
Custom model and field names (Prisma ORM v7)
Read replicas (Prisma ORM v7)
Database polyfills (Prisma ORM v7)
Configuring error formatting (Prisma ORM v7)
Database connections (Prisma ORM v7)
Connection pool
Prisma ORM's query engine creates a connection pool to store and manage database connections. Applies to Prisma ORM v7.
Connection management
This page explains how database connections are handled with Prisma Client and how to manually connect and disconnect your database. Applies to Prisma ORM v7.
Configure Prisma Client with PgBouncer
Configure Prisma Client with PgBouncer and other poolers: when to use pgbouncer=true, required transaction mode, prepared statements, and Prisma Migrate workarounds. Applies to Prisma ORM v7.
CRUD (Prisma ORM v7)
Select fields (Prisma ORM v7)
Excluding fields (Prisma ORM v7)
Relation queries (Prisma ORM v7)
Filtering and sorting (Prisma ORM v7)
Pagination (Prisma ORM v7)
Aggregation, grouping, and summarizing
Use Prisma Client to aggregate, group by, count, and select distinct. Applies to Prisma ORM v7.
Transactions and batch queries (Prisma ORM v7)
Full-text search (Prisma ORM v7)
Query optimization (Prisma ORM v7)
What are Client Extensions
Extend the functionality of Prisma Client. Applies to Prisma ORM v7.
Add methods to Prisma Client (Prisma ORM v7)
Add custom methods to your models (Prisma ORM v7)
Create custom Prisma Client queries (Prisma ORM v7)
Add custom fields and methods to query results (Prisma ORM v7)
Type utilities (Prisma ORM v7)
Shared Prisma Client extensions (Prisma ORM v7)
Fine-Grained Authorization (Permit) (Prisma ORM v7)
Shared packages & examples (Prisma ORM v7)
Deploy Prisma ORM (Prisma ORM v7)
Deploying database changes with Prisma Migrate (Prisma ORM v7)
Deploy migrations from a local environment (Prisma ORM v7)
Caveats when deploying to AWS platforms (Prisma ORM v7)
Deploy to Vercel (Prisma ORM v7)
Deploy to AWS Lambda
Learn how to deploy your Prisma ORM-backed applications to AWS Lambda with AWS SAM, Serverless Framework, or SST. Applies to Prisma ORM v7.
Deploy to Azure Functions (Prisma ORM v7)
Deploy to Netlify
Learn how to deploy Node.js and TypeScript applications that are using Prisma Client to Netlify. Applies to Prisma ORM v7.
Deploying edge functions with Prisma ORM
Learn how to deploy your Prisma-backed apps to edge functions like Cloudflare Workers or Vercel Edge Functions. Applies to Prisma ORM v7.
Deploy to Vercel Edge Functions & Middleware
Learn the things you need to know in order to deploy an Edge function that uses Prisma Client for talking to a database. Applies to Prisma ORM v7.
Deploy to Cloudflare Workers & Pages
Learn the things you need to know in order to deploy an app that uses Prisma Client for talking to a database to a Cloudflare Worker or to Cloudflare Pages. Applies to Prisma ORM v7.
Deploy to Deno Deploy (Prisma ORM v7)
Deploy to Heroku (Prisma ORM v7)
Deploy to Railway (Prisma ORM v7)
Deploy to Fly.io (Prisma ORM v7)
Deploy to Koyeb (Prisma ORM v7)
Deploy to Render
Learn how to deploy a Node.js server that uses Prisma ORM to Render. Applies to Prisma ORM v7.
Deploy to Sevalla (Prisma ORM v7)
Logging (Prisma ORM v7)
OpenTelemetry tracing
Diagnose application performance with detailed traces of each query. Applies to Prisma ORM v7.
SQL comments (Prisma ORM v7)
Debugging (Prisma ORM v7)
Handling exceptions and errors (Prisma ORM v7)
Fields & types (Prisma ORM v7)
Working with Json fields (Prisma ORM v7)
Working with scalar lists (Prisma ORM v7)
Working with compound IDs and unique constraints (Prisma ORM v7)
Composite types (Prisma ORM v7)
Null and undefined (Prisma ORM v7)
Unit testing (Prisma ORM v7)
Integration testing
Learn how to setup and run integration tests with Prisma and Docker. Applies to Prisma ORM v7.
Type safety Overview (Prisma ORM v7)
How to use Prisma ORM's type system (Prisma ORM v7)
Operating against partial structures of your model types (Prisma ORM v7)
Write your own SQL (Prisma ORM v7)
Raw queries (Prisma ORM v7)
TypedSQL
Learn how to use TypedSQL to write fully type-safe SQL queries that are compatible with any SQL console and Prisma Client. Applies to Prisma ORM v7.
SafeQL & Prisma Client (Prisma ORM v7)