Database polyfills (Prisma ORM v6) (/docs/orm/v6/prisma-client/setup-and-configuration/database-polyfills)
For the complete Prisma documentation index, see llms.txt. A markdown version of any docs page is available by appending
.mdto its URL.
Prisma Client provides features that are not achievable with relational databases. These features are referred to as "polyfills" and explained on this page.
Location: ORM > v6 > Prisma Client > Setup and Configuration > Database polyfills
Prisma Client provides features that are typically either not achievable with particular databases or require extensions. These features are referred to as polyfills. For all databases, this includes:
- Initializing ID values with
cuidanduuidvalues - Using
@updatedAtto store the time when a record was last updated
For relational databases, this includes:
For MongoDB, this includes:
- Relations in general - foreign key relations between documents are not enforced in MongoDB
Related pages
Section titled “Related pages”Configuring error formatting: This page explains how to configure the formatting of errors when using Prisma Client.Custom model and field names: Learn how you can decouple the naming of Prisma models from database tables to improve the ergonomics of the generated Prisma Client API.Database connections: Databases connectionsGenerating Prisma Client: This page explains how to generate Prisma Client. It also provides additional context on the generated client, typical workflows and Node.js configuration.Instantiating Prisma Client: How to create and use an instance of PrismaClient in your app.