/ ORMPrisma Client In this sectionSetup & configurationIntroductionGenerating Prisma ClientInstantiating Prisma ClientDatabase connectionsConnection managementConnection poolConfigure Prisma Client with PgBouncerCustom model and field namesConfiguring error formattingRead replicasDatabase polyfillsQueriesCRUDSelect fieldsRelation queriesFiltering and SortingPaginationAggregation, grouping, and summarizingTransactions and batch queriesFull-text searchCustom validationComputed fieldsExcluding fieldsCustom modelsCase sensitivityRaw database accessRaw queriesCustom & type-safe queriesQuery optimizationFields & typesComposite typesNull and undefinedWorking with Json fieldsWorking with scalar listsWorking with compound IDs and unique constraintsExtensions`model`: Add custom methods to your models`client`: Add methods to Prisma Client`query`: Create custom Prisma Client queries`result`: Add custom fields and methods to query resultsShared Prisma Client extensionsType utilitiesShared packages & examplesMiddlewareMiddleware sample: soft deleteMiddleware sample: loggingMiddleware sample: session dataType safetyPrisma validatorOperating against partial structures of your model typesHow to use Prisma ORM's type systemTestingUnit testingIntegration testingDeploymentDeploy Prisma ORMTraditional serversDeploy to HerokuDeploy to KoyebServerless functionsDeploy to Azure FunctionsDeploy to VercelDeploy to AWS LambdaDeploy to NetlifyEdge functionsOverviewDeploy to Cloudflare Workers & PagesDeploy to Vercel Edge Functions & MiddlewareDeploy to Deno DeployModule bundlersDeploying database changes with Prisma MigrateDeploy migrations from a local environmentCaveats when deploying to AWS platformsDeploy to a different OSObservability & loggingLoggingMetricsOpenTelemetry tracingDebugging & troubleshootingDebuggingHandling exceptions and errorsEdit this page on GitHub