Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

Prisma Client & Prisma schema

When we release a new Prisma Client or Prisma schema feature, it often starts in Preview so that you can test it and submit your feedback. After we improve the feature with your feedback and are satisfied with the internal test results, we promote the feature to general availability.

For more information, see ORM releases and maturity levels.

The following Preview feature flags are available for Prisma Client and Prisma schema:

Feature Released into Preview Feedback issue
views 4.9.0 Submit feedback
relationJoins 5.7.0 Submit feedback
nativeDistinct 5.7.0 Submit feedback
typedSql 5.19.0 Submit feedback
strictUndefinedChecks 5.20.0 Submit feedback
fullTextSearchPostgres 6.0.0 Submit feedback
shardKeys 6.10.0 Submit feedback
partialIndexes 7.4.0 Submit feedback

To enable a Preview feature, add the feature flag to the generator block in your schema.prisma file. Share your feedback on all Preview features on GitHub.

To enable a Prisma Client Preview feature:

  1. Add the Preview feature flag to the generator block:

    generator client {
    
      provider        = "prisma-client"
    
      output          = "./generated"
    
      previewFeatures = ["relationJoins"]
    
    }
  2. Re-generate Prisma Client:

    bunx prisma generate
    Bash
    pnpm prisma generate
    Bash
    yarn prisma generate
    Bash
    npx prisma generate
    1. If you are using Visual Studio Code and the Preview feature is not available in your .ts file after generating Prisma Client, run the TypeScript: Restart TS server command.
  3. If you are using Visual Studio Code and the Preview feature is not available in your .ts file after generating Prisma Client, run the TypeScript: Restart TS server command.

In the list below, you can find a history of Prisma Client and Prisma schema features that were in Preview and are now in general availability. The features are sorted by the most recent version in which they were promoted to general availability.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu