NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #3659 most downloaded on npm
Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.
Latest stable
7.10.1
Last release today
23 Nov 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
10665 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Today, we are excited to share the 3.6.0 stable release 🎉
Today, we are excited to share the 3.6.0 stable release 🎉
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
In this version we introduce support for full-text indexes in the db pull, db push and migrate commands for MySQL and MongoDB databases as a Preview feature. This allows using them in the Prisma schema and prevents validation errors in some database schemas.
For now we do not enable the full-text search commands in the Prisma Client. They will be implemented separately, and the progress can be followed in the MongoDB and MySQL issues.
Add the preview feature fullTextIndex to the Prisma schema, after which the @@fulltext attribute is allowed in the Prisma schema:
generator js {
provider = "prisma-client-js"
previewFeatures = ["fullTextIndex"]
}
model A {
id Int @id
title String @db.VarChar(255)
content String @db.Text
@@fulltext([title, content])
}
Please note that it is mandatory to do db pull with the preview feature enabled before using Prisma Migrate on existing MySQL databases, so the index types can be converted and will not get overwritten in the next migration.
For more details check out our documentation.
With the extendedIndexes preview feature, it is now possible to use Hash instead of the default BTree as the index algorithm on PostgreSQL databases. A hash index can be much faster for inserts, but it only supports equals operation in the database.
An example of using a hash index:
generator js {
provider = "prisma-client-js"
previewFeatures = ["extendedIndexes"]
}
model A {
id Int @id
value Int
@@index([value], type: Hash)
}
For more details check out our documentation.
Until this release, the language server powering the Prisma VS Code extension relied on logic from the Prisma engines in the form of a native binary. Downloading and running the native binary required a large amount of custom logic and led to problems due to network failures, operating system permissions and malicious code detection issues.
Starting with 3.6.0, the language server and the VS Code extension use logic compiled to WebAssembly and distributed through npm. There is no runtime binary download and no external process involved anymore. We expect this new distribution model to be more robust and hence provide a better experience for our users.
If you have any feedback, please leave an issue in the prisma/language-tools repository.
Bytes can now be filtered with in and notInYou can now use in and notIn operations on the Bytes type:
const audioTracks = raws.map(raw => {
return Buffer.from(raw)
})
const result = await prisma.audio.find({
where: {
track:
in: audioTracks
}
}
})
Thanks @serejkaaa512 for your contribution!
Json fields now accept read-only typesThis is a small quality-of-life improvement. You can now pass immutable values into Json fields. In the following example, audit is a Json field that accepts a read-only array:
const trail = [
{ event: "signup" },
{ event: "subscribe" },
{ event: "invite friend" }
] as const
await prisma.user.create({
data: {
audit: trail
}
})
Learn more in this issue.
If you've spent some time using the new Interactive Transaction API with the binary engine, you may have encountered this timeout error:
Transaction API error: Transaction already closed: Transaction is no longer valid. Last state: 'Expired'.
This could happen if you had two concurrent requests modifying the same resource at the same time using the binary engine type.
It took us a while to track down the source of this error, but it turned out to be a low-level misconfiguration in our HTTP client. We disabled HTTP pipelining to fix this problem.
notIn filters for large queriesThis most likely didn't affect you, but if you ever tried using notIn with a large query, you may have received an incorrect result.
The query engine automatically breaks up large queries into smaller queries and intersects the results. Most of the time this works as expected but for certain queries like notIn, the intersection of results is incorrect.
We fixed this in 3.6.0. You can now use in and notIn operations on the Bytes type:
const denyList = [/* ... large list of user ids ... */]
const result = await prisma.user.findMany({
where: {
id: {
notIn: denyList
}
}
})
This query will break up the query into chunks that your database can manage:
select * where User not in ($1,$2, ..., $5000)
select * where User not in ($1000,$1001, ..., $6000)
... and return the correct results. Learn more in this issue.
in natively for bytesThe provided database string is invalid. Invalid MongoDB connection string in database URL. insteadprisma migrate dev with timeout but works with prisma db seeddbgenerated migrations in MySQL are broken (since 3.4.x)Huge thanks to @Akxe, @safareli for helping!
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.
The stream takes place on YouTube on Thursday, December 02 at 5pm Berlin | 8am San Francisco.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
> ⚠️ Warning: This might be a _breaking change_ for some users. To learn how to mitigate that, please read the documentation linked below.
Today, we are excited to share the 3.5.0 stable release 🎉
🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟
In 3.5.0, we've added support for ordering full text search results by relevance. Ordering by relevance gives you a way to order search results by the best match. You can enable order by relevance and full-text search with the fullTextSearch feature flag:
generator client {
provider = "prisma-client-js"
previewFeatures = ["fullTextSearch"]
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model People {
id Int @id @default(autoincrement())
bio String
}
While this feature is useful standalone, it's most commonly used in combination with the full text search field in the where clause:
const query = "node.js developer"
const developers = await prisma.people.findMany({
where: {
bio: {
// Only select people whose bio's contain "node.js developer"
search: query,
},
},
orderBy: {
// Order that selection by query relevance.
_relevance: {
fields: ["bio"],
search: query,
sort: "desc",
},
},
})
Learn more in our documentation and if you run into any issues or have feedback for us, you can reach us in this issue.
We are extending the syntax in the Prisma schema to add support for configuration of length and sort order. This applies to:
These new configuration options come with full support for the prisma db pull, prisma db push and prisma migrate dev commands, so index configuration can now be managed, evolved and deployed using Prisma's schema management tooling.
Two new arguments can now be specified per field:
length (the maximum length of items in the index)sort (how an index is sorted)In order to use these new capabilities, add the extendedIndexes feature flag in the generator block:
generator client {
provider = "prisma-client-js"
previewFeatures = ["extendedIndexes"]
}
The change affects the @id, @@id, @unique, @@unique and @@index fields in certain databases:
length argument is available on MySQL on the @id, @@id, @unique, @@unique and @@index fields. It allows Prisma to now support indexes and constraints on String with a TEXT native type and Bytes types.sort argument is available for all databases on the @unique, @@unique and @@index fields. Additionally, SQL Server also allows it on @id and @@id.The following example demonstrates the use of the sort and length arguments:
model Post {
title String @db.VarChar(300)
abstract String @db.VarChar(3000)
slug String @db.VarChar(3000) @unique(sort: Desc, length: 42)
author String
created_at DateTime
@@id([title(length: 100, sort: Desc), abstract(length: 10)])
@@index([author, created_at(sort: Desc)])
}
⚠️ Warning: This might be a breaking change for some users. To learn how to mitigate that, please read the documentation linked below.
Learn more in the documentation on index configuration.
We've had this feature in the Prisma Client JS for awhile, but in this release, we've added case-insensitive query support to the Go Client as well. Now you can worry a bit less about what kind of data the user is going to send your way.
users, err := client.User.FindMany(
User.Email.Equals("prisMa"),
User.Email.Mode(QueryModeInsensitive), // sets case insensitivity
).Exec(ctx)
Learn more in our documentation.
uuid is invalid_count key of relation count is nullableengineType=binary incompatible with Node.js v17?.env are logged via DEBUG=*db push crashes on SQL Server because of Error: There is already an object named 'Post_authorId_fkey' in the database.cockroachdb provider in the Schema ParserengineType = "dataproxy" or similarJoin us for the first Prisma Serverless Data Conference about all things databases and serverless. Here's an overview of the speakers at the conference:
In addition to these fantastic talks, you can look forward to the Prisma keynote with a lot of information about the current status and upcoming plans for the Prisma Data Platform.
Learn about the latest release and other news from the Prisma community by joining us for another "What's new in Prisma" livestream.
The stream takes place on Youtube on Wednesday, November 17 at 5pm Berlin | 9am San Francisco.
Note: We usually stream on Thursdays, but this week we have moved the stream to Wednesday to leave space for the Serverless Data Conference on Thursday.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.