# Prisma Client & Prisma schema (Prisma ORM v7) (/docs/orm/v7/reference/preview-features/client-preview-features)

Prisma Client and Prisma schema features that are currently in Preview

Location: ORM > v7 > Reference > Preview Features > 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](/guides/more-4-v7-more-releases).

## Currently active Preview features

The following [Preview](/guides/more-4-v7-more-releases#preview) feature flags are available for Prisma Client and Prisma schema:

| Feature                                                                       | Released into Preview                                       |                           Feedback issue                           |
| ----------------------------------------------------------------------------- | :---------------------------------------------------------- | :----------------------------------------------------------------: |
| [`views`](/guides/prisma-schema-v7-data-model-views)                          | [4.9.0](https://github.com/prisma/orm/releases/tag/4.9.0)   |    [Submit feedback](https://github.com/prisma/orm/issues/17335)   |
| `relationJoins`                                                               | [5.7.0](https://github.com/prisma/orm/releases/tag/5.7.0)   | [Submit feedback](https://github.com/prisma/orm/discussions/22288) |
| `nativeDistinct`                                                              | [5.7.0](https://github.com/prisma/orm/releases/tag/5.7.0)   | [Submit feedback](https://github.com/prisma/orm/discussions/22287) |
| `typedSql`                                                                    | [5.19.0](https://github.com/prisma/orm/releases/tag/5.19.0) | [Submit feedback](https://github.com/prisma/orm/discussions/25106) |
| `strictUndefinedChecks`                                                       | [5.20.0](https://github.com/prisma/orm/releases/tag/5.20.0) | [Submit feedback](https://github.com/prisma/orm/discussions/25271) |
| [`fullTextSearchPostgres`](/guides/prisma-client-v6-queries-full-text-search) | [6.0.0](https://github.com/prisma/orm/releases/tag/6.0.0)   |    [Submit feedback](https://github.com/prisma/orm/issues/25773)   |
| `shardKeys`                                                                   | [6.10.0](https://pris.ly/release/6.10.0)                    |      [Submit feedback](https://github.com/prisma/orm/issues/)      |
| [`partialIndexes`](/guides/prisma-schema-v7-data-model-indexes)               | [7.4.0](https://pris.ly/release/7.4.0)                      |    [Submit feedback](https://github.com/prisma/orm/issues/6974)    |

To enable a Preview feature, [add the feature flag to the `generator` block](#enabling-a-prisma-client-preview-feature) in your `schema.prisma` file. [Share your feedback on all Preview features on GitHub](https://github.com/prisma/orm/issues/3108).

## Enabling a Prisma Client Preview feature

To enable a Prisma Client Preview feature:

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

   ```prisma
   generator client {
     provider        = "prisma-client"
     output          = "./generated"
     previewFeatures = ["relationJoins"]
   }
   ```

2. Re-generate Prisma Client:

#### bun

```bash
bunx prisma generate
```

#### pnpm

```bash
pnpm prisma generate
```

#### yarn

```bash
yarn prisma generate
```

#### npm

```bash
npx prisma generate
```

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.

## Preview features promoted to General Availability

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.

| Feature                                                                                                                                 | Released into Preview                                                                                                                                                                                                                                                                                                                                                                                   | Released into General Availability                                                                                                            |
| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| [`driverAdapters`](/guides/core-concepts-v7-supported-databases-database-drivers#driver-adapters)                                       | [5.4.0](https://github.com/prisma/orm/releases/tag/5.4.0)                                                                                                                                                                                                                                                                                                                                               | [6.16.0](https://github.com/prisma/orm/releases/tag/6.16.0)                                                                                   |
| [`multiSchema`](/guides/prisma-schema-v7-data-model-multi-schema)                                                                       | [4.3.0](https://github.com/prisma/orm/releases/tag/4.3.0)                                                                                                                                                                                                                                                                                                                                               | [6.13.0](https://github.com/prisma/orm/releases/tag/6.13.0)                                                                                   |
| [`prismaSchemaFolder`](/guides/prisma-schema-v7-overview-location#multi-file-prisma-schema)                                             | [5.15.0](https://github.com/prisma/orm/releases/tag/5.15.0)                                                                                                                                                                                                                                                                                                                                             | [6.7.0](https://pris.ly/release/6.7.0)                                                                                                        |
| `omitApi`                                                                                                                               | [5.13.0](https://github.com/prisma/orm/releases/tag/5.13.0)                                                                                                                                                                                                                                                                                                                                             | [6.2.0](https://github.com/prisma/orm/releases/tag/6.2.0)                                                                                     |
| `jsonProtocol`                                                                                                                          | [4.11.0](https://github.com/prisma/orm/releases/tag/4.11.0)                                                                                                                                                                                                                                                                                                                                             | [5.0.0](https://github.com/prisma/orm/releases/tag/5.0.0)                                                                                     |
| [`extendedWhereUnique`](/guides/reference-6-v7-reference-prisma-client-reference#filter-on-non-unique-fields-with-userwhereuniqueinput) | [4.5.0](https://github.com/prisma/orm/releases/tag/4.5.0)                                                                                                                                                                                                                                                                                                                                               | [5.0.0](https://github.com/prisma/orm/releases/tag/5.0.0)                                                                                     |
| [`fieldReference`](/guides/reference-6-v7-reference-prisma-client-reference#compare-columns-in-the-same-table)                          | [4.3.0](https://github.com/prisma/orm/releases/tag/4.3.0)                                                                                                                                                                                                                                                                                                                                               | [5.0.0](https://github.com/prisma/orm/releases/tag/5.0.0)                                                                                     |
| [`clientExtensions`](/guides/prisma-client-v7-client-extensions)                                                                        | [4.7.0](https://github.com/prisma/orm/releases/tag/4.7.0)                                                                                                                                                                                                                                                                                                                                               | [4.16.0](https://github.com/prisma/orm/releases/tag/4.16.0)                                                                                   |
| [`filteredRelationCount`](/guides/prisma-client-v7-queries-aggregation-grouping-summarizing#filter-the-relation-count)                  | [4.3.0](https://github.com/prisma/orm/releases/tag/4.3.0)                                                                                                                                                                                                                                                                                                                                               | [4.16.0](https://github.com/prisma/orm/releases/tag/4.16.0)                                                                                   |
| [`tracing`](/guides/prisma-client-v7-observability-and-logging-opentelemetry-tracing)                                                   | [4.2.0](https://github.com/prisma/orm/releases/tag/4.2.0)                                                                                                                                                                                                                                                                                                                                               | [6.1.0](https://github.com/prisma/orm/releases/tag/6.1.0)                                                                                     |
| [`orderByNulls`](/guides/prisma-client-v6-queries-filtering-and-sorting#sort-with-null-records-first-or-last)                           | [4.1.0](https://github.com/prisma/orm/releases/tag/4.1.0)                                                                                                                                                                                                                                                                                                                                               | [4.16.0](https://github.com/prisma/orm/releases/tag/4.16.0)                                                                                   |
| [`referentialIntegrity`](/guides/prisma-schema-v7-data-model-relations-relation-mode)                                                   | [3.1.1](https://github.com/prisma/orm/releases/tag/3.1.1)                                                                                                                                                                                                                                                                                                                                               | [4.7.0](https://github.com/prisma/orm/releases/tag/4.7.0)                                                                                     |
| [`interactiveTransactions`](/guides/prisma-client-v7-queries-transactions#interactive-transactions)                                     | [2.29.0](https://github.com/prisma/orm/releases/tag/2.29.0)                                                                                                                                                                                                                                                                                                                                             | [4.7.0](https://github.com/prisma/orm/releases/tag/4.7.0)<br>with Prisma Accelerate [5.1.1](https://github.com/prisma/orm/releases/tag/5.1.1) |
| [`extendedIndexes`](/guides/prisma-schema-v7-data-model-indexes)                                                                        | [3.5.0](https://github.com/prisma/orm/releases/tag/3.5.0)                                                                                                                                                                                                                                                                                                                                               | [4.0.0](https://github.com/prisma/orm/releases/tag/4.0.0)                                                                                     |
| [`filterJson`](/guides/prisma-client-v7-special-fields-and-types-working-with-json-fields#filter-on-a-json-field-simple)                | [2.23.0](https://github.com/prisma/orm/releases/tag/2.23.0)                                                                                                                                                                                                                                                                                                                                             | [4.0.0](https://github.com/prisma/orm/releases/tag/4.0.0)                                                                                     |
| [`improvedQueryRaw`](/guides/prisma-client-v7-using-raw-sql-raw-queries#raw-query-type-mapping)                                         | [3.14.0](https://github.com/prisma/orm/releases/tag/3.14.0)                                                                                                                                                                                                                                                                                                                                             | [4.0.0](https://github.com/prisma/orm/releases/tag/4.0.0)                                                                                     |
| [`cockroachdb`](/guides/core-concepts-v7-supported-databases-postgresql#cockroachdb)                                                    | [3.9.0](https://github.com/prisma/orm/releases/tag/3.9.0)<br>migrations in [3.11.0](https://github.com/prisma/orm/releases/tag/3.11.0)                                                                                                                                                                                                                                                                  | [3.14.0](https://github.com/prisma/orm/releases/tag/3.14.0)                                                                                   |
| [`mongodb`](/guides/core-concepts-v7-supported-databases-mongodb)                                                                       | [2.27.0](https://github.com/prisma/orm/releases/tag/2.27.0)<br>introspection in [3.2.0](https://github.com/prisma/orm/releases/tag/3.2.0)<br>embedded docs in [3.4.0](https://github.com/prisma/orm/releases/tag/3.4.0)<br>raw queries in [3.9.0](https://github.com/prisma/orm/releases/tag/3.9.0)<br>filters/ordering in embedded docs in [3.11.0](https://github.com/prisma/orm/releases/tag/3.11.0) | [3.12.0](https://github.com/prisma/orm/releases/tag/3.12.0)                                                                                   |
| [`microsoftSqlServer`](/guides/core-concepts-v7-supported-databases-sql-server)                                                         | [2.10.0](https://github.com/prisma/orm/releases/tag/2.10.0)                                                                                                                                                                                                                                                                                                                                             | [3.0.1](https://github.com/prisma/orm/releases/tag/3.0.1)                                                                                     |
| [`namedConstraints`](/guides/prisma-schema-v7-data-model-database-mapping#constraint-and-index-names)                                   | [2.29.0](https://github.com/prisma/orm/releases/tag/2.29.0)                                                                                                                                                                                                                                                                                                                                             | [3.0.1](https://github.com/prisma/orm/releases/tag/3.0.1)                                                                                     |
| [`referentialActions`](/guides/prisma-schema-v7-data-model-relations-referential-actions)                                               | [2.26.0](https://github.com/prisma/orm/releases/tag/2.26.0)                                                                                                                                                                                                                                                                                                                                             | [3.0.1](https://github.com/prisma/orm/releases/tag/3.0.1)                                                                                     |
| [`orderByAggregateGroup`](/guides/prisma-client-v7-queries-aggregation-grouping-summarizing#order-by-aggregate-group)                   | [2.21.0](https://github.com/prisma/orm/releases/tag/2.21.0)                                                                                                                                                                                                                                                                                                                                             | [3.0.1](https://github.com/prisma/orm/releases/tag/3.0.1)                                                                                     |
| [`orderByRelation`](/guides/prisma-client-v6-queries-filtering-and-sorting#sort-by-relation)                                            | [2.16.0](https://github.com/prisma/orm/releases/tag/2.16.0)<br>aggregates in [2.19.0](https://github.com/prisma/orm/releases/tag/2.19.0)                                                                                                                                                                                                                                                                | [3.0.1](https://github.com/prisma/orm/releases/tag/3.0.1)                                                                                     |
| [`selectRelationCount`](/guides/prisma-client-v7-queries-aggregation-grouping-summarizing#count-relations)                              | [2.20.0](https://github.com/prisma/orm/releases/tag/2.20.0)                                                                                                                                                                                                                                                                                                                                             | [3.0.1](https://github.com/prisma/orm/releases/tag/3.0.1)                                                                                     |
| `napi`                                                                                                                                  | [2.20.0](https://github.com/prisma/orm/releases/tag/2.20.0)                                                                                                                                                                                                                                                                                                                                             | [3.0.1](https://github.com/prisma/orm/releases/tag/3.0.1)                                                                                     |
| [`groupBy`](/guides/reference-6-v7-reference-prisma-client-reference#groupby)                                                           | [2.14.0](https://github.com/prisma/orm/releases/tag/2.14.0)                                                                                                                                                                                                                                                                                                                                             | [2.20.0](https://github.com/prisma/orm/releases/tag/2.20.0)                                                                                   |
| [`createMany`](/guides/reference-6-v7-reference-prisma-client-reference#createmany)                                                     | [2.16.0](https://github.com/prisma/orm/releases/tag/2.16.0)                                                                                                                                                                                                                                                                                                                                             | [2.20.0](https://github.com/prisma/orm/releases/tag/2.20.0)                                                                                   |
| [`nativeTypes`](/guides/prisma-schema-v7-data-model-models#native-types-mapping)                                                        | [2.11.0](https://github.com/prisma/orm/releases/tag/2.11.0)                                                                                                                                                                                                                                                                                                                                             | [2.17.0](https://github.com/prisma/orm/releases/tag/2.17.0)                                                                                   |
| [`uncheckedScalarInputs`](/guides/prisma-client-v7-queries-relation-queries#create-a-single-record-and-multiple-related-records)        | [2.11.0](https://github.com/prisma/orm/releases/tag/2.11.0)                                                                                                                                                                                                                                                                                                                                             | [2.15.0](https://github.com/prisma/orm/releases/tag/2.15.0)                                                                                   |
| [`transactionApi`](/guides/prisma-client-v7-queries-transactions#the-transaction-api)                                                   | [2.1.0](https://github.com/prisma/orm/releases/tag/2.1.0)                                                                                                                                                                                                                                                                                                                                               | [2.11.0](https://github.com/prisma/orm/releases/tag/2.11.0)                                                                                   |
| [`connectOrCreate`](/guides/reference-6-v7-reference-prisma-client-reference#connectorcreate)                                           | [2.1.0](https://github.com/prisma/orm/releases/tag/2.1.0)                                                                                                                                                                                                                                                                                                                                               | [2.11.0](https://github.com/prisma/orm/releases/tag/2.11.0)                                                                                   |
| [`atomicNumberOperations`](/guides/reference-6-v7-reference-prisma-client-reference#atomic-number-operations)                           | [2.6.0](https://github.com/prisma/orm/releases/tag/2.6.0)                                                                                                                                                                                                                                                                                                                                               | [2.10.0](https://github.com/prisma/orm/releases/tag/2.10.0)                                                                                   |
| [`insensitiveFilters` (PostgreSQL)](/guides/prisma-client-v6-queries-filtering-and-sorting#case-insensitive-filtering)                  | [2.5.0](https://github.com/prisma/orm/releases/tag/2.5.0)                                                                                                                                                                                                                                                                                                                                               | [2.8.0](https://github.com/prisma/orm/releases/tag/2.8.0)                                                                                     |
| [`aggregateApi`](/guides/prisma-client-v7-queries-aggregation-grouping-summarizing#aggregate)                                           | [2.2.0](https://github.com/prisma/orm/releases/tag/2.2.0)                                                                                                                                                                                                                                                                                                                                               | [2.5.0](https://github.com/prisma/orm/releases/tag/2.5.0)                                                                                     |
| [`distinct`](/guides/reference-6-v7-reference-prisma-client-reference#distinct)                                                         | [2.3.0](https://github.com/prisma/orm/releases/tag/2.3.0)                                                                                                                                                                                                                                                                                                                                               | [2.5.0](https://github.com/prisma/orm/releases/tag/2.5.0)                                                                                     |

## Related pages

- [`Prisma CLI Preview features`](/guides/reference-6-v7-reference-preview-features-cli-preview-features): Prisma CLI features that are currently in Preview.

## Related pages

- [Authentication & Tools](./authentication-tools-index.md)
- [Build](./build-index.md)
- [Changelog](../changelog.md)
- [Concepts](./concepts-index.md)
- [Console commands](./console-commands-index.md)
- [Contract Authoring](./contract-authoring-index.md)
- [Core Concepts](./core-concepts-index.md)
- [Data Modeling](./data-modeling-index.md)
- [Database](./database-index.md)
- [DB commands](./db-commands-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
