Alex Ruheni
4.1.0
prisma rainbow
In case you missed it, we held a last week and walked through issues you may run into while upgrading to Prisma 4 and how to fix them!
๐งฉ Ordering by nulls first and last support (Preview)
In this release, weโre adding support for choosing how to sort null values in a query. To get started, enable the orderByNulls
Preview feature flag in your Prisma schema.
generator client {
provider = "prisma-client-js"
previewFeatures = ["orderByNulls"]
}
Next, run prisma generate
to re-generate Prisma Client. You will now have new fields you can now use to order null values:
await prisma.post.findMany({
orderBy: {
updatedAt: {
sort: 'asc',
nulls: 'last'
},
},
})
Learn more in our documentation, and donโt hesitate to share your feedback on this issue.
โก Fixed memory leaks and CPU usage in Prisma Client
In this release, weโve fixed the following issues experienced when setting up and tearing down Prisma Client while running tests:
1. Prisma Client now correctly releases memory on Prisma Client instances that are no longer being used. Learn more in this GitHub issue
2. Reduced CPU usage spikes when disconnecting Prisma Client instances while using Prisma Client. You can learn more in this GitHub issue
These fixes will allow you to run your tests a little faster!
๐
Prisma Studio improvements
Weโre refining the experience when working with Prisma studio with the following changes:
1. An always visible filter panel and functionality to clear all filters at once
2. Improved relationship model view with more visible buttons
๐ Learn more in the release notes
For more info and links to documentation, you can read the release notes.
๐ Help us spread the word about Prisma ๐
To help spread the word about Prisma, weโd very much appreciate it if you would star the repo ๐ And if youโre excited about the features in this weekโs release, then help us and share your excitement on Twitter.
๐ฐ Join us on Thursday for the โWhatโs new in Prismaโ livestream
This week, @Tasin Ishmam and @Sabin Adams will discuss the latest release and other news from the Prisma ecosystem in a this Thursday at 5 pm Berlin | 8 am San Francisco.