Database polyfills (Prisma ORM v7) (/docs/orm/v7/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 > v7 > 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 ClientCustom 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 APIDatabase connections: Learn how to manage database connections and configure connection poolsGenerating Prisma Client: Learn when and how to run prisma generate, configure the generator output, and import the generated client in your app.Introduction to Prisma Client: Learn how to set up and configure Prisma Client in your project