Prisma.io
QuickstartDocsFAQCommunityBlogGitHub
QuickstartDocsFAQCommunityBlogGitHub
Getting StartedConceptsGuidesReferenceSupportAbout
Prisma 1 Docs   
Docs
    • Concepts
      • Overview
        • What is Prisma?
        • Why Prisma?
        • Should you use Prisma?
        • Prisma in your stack
        • Under the hood
      • Components
        • Prisma schema
        • Prisma Client
          • Working with PrismaClient
            • Generating the client
            • Instantiating the client
            • Using custom model and field names
            • Connection management
            • Configuring logging
            • Configuring error formatting
          • CRUD
          • Select fields
          • Relation queries
          • Filtering and sorting
          • Working with field types
          • Advanced usage of generated types
          • Middleware
          • Pagination
          • Aggregation, grouping, and summarizing
          • Transactions
          • Case sensitivity
          • Null and undefined
          • Raw database access
          • Debugging
          • Deployment
          • Query engine
          • Module bundlers
          • Database polyfills
        • Prisma MigratePreview
        • Introspection
        • Prisma CLI
          • Installing the Prisma CLI
        • Prisma Studio
        • Preview features
      • Database connectors
        • PostgreSQL
        • MySQL
        • SQLite
        • SQL ServerPreview
      • More
        • Editor setup
        • Codemod
        • Telemetry
        • Comparing Prisma
Concepts / Components / Prisma Client

Working with PrismaClient

This section describes how to generate, configure, and instantiate PrismaClient , as well as when and how to actively manage connections.

In this section

  • Generating the client
  • Instantiating the client
  • Using custom model and field names
  • Connection management
  • Configuring logging
  • Configuring error formatting

Was this helpful?

Edit this page on GitHub
CONTENT
  • In this section
Prisma Logo

Products

Prisma ClientPrisma StudioPrisma 1 CloudProduct Roadmap

Resources

DocsGet StartedAPI ReferenceExamplesHow to GraphQLData Guide

Prisma With

Prisma with Next.jsPrisma with GraphQLPrisma with ApolloPrisma with NestJSPrisma with ExpressPrisma with hapi

Community

Meet the CommunitySlackGitHubDiscussionsGraphQL MeetupTypeScript MeetupAdvanced TypeScript Trickery

Company

AboutJobs We're hiring!CausesBlogTerms & PrivacyHTML Sitemap

Newsletter

Stay up to date with the latest features and changes to Prisma

Find Us

Find us on TwitterFind us on YouTubeJoin us on SlackFind us on GitHub

Prisma © 2018-2021.

Made with ❤️ in Berlin and worldwide