โ† Back to Changelog

Prisma ORM v5.16.0: global omit for model fields

v5.16.0
June 27, 2024
Prisma ORMPlatform

Prisma ORM v5.16.0: global omit for model fields

In 5.13.0, we introduced Preview support for the omit option within the Prisma Client query options. Now, weโ€™re more than happy to announce that weโ€™re expanding the omitApi Preview feature to also include the ability to omit fields globally.

Here's an example how youโ€™re able to define fields to omit when instantiating Prisma Client either locally or globally:

Code export (3).png

Read more in our latest blog post.

Changes to prismaSchemaFolder preview feature

To continue improving our multi-file schema support, we have a few breaking changes to the prismaSchemaFolder feature:

When using relative paths in Prisma Schema files with the prismaSchemaFolder feature, a path is now relative to the file it is defined in rather than relative to the prisma/schema folder.

We realized that during migration many people would have prisma/schema as well as prisma/schema.prisma. Our initial implementation looked for a .prisma file first and would ignore the schema folder if it exists. This is now an error.

GitHub or Google... ๐Ÿค”

With the new Google authentication option, the choice is yours when signing in on http://console.prisma.io.

Tweet video.gif

Stay tuned for more authentication options!

Achievement Unlocked: Compliance for SOC2 Type II, HIPAA, GDPR, and ISO27001

Prisma has successfully implemented processes and controls required for SOC2 Type II, HIPAA, GDPR, and ISO 27001

certifications. These accomplishments demonstrate our commitment to providing secure and reliable software solutions for developers working with databases.

Read more in our blog post.

๐Ÿš€ Introducing the Prisma Nuxt module

Simplify setting up Prisma ORM in your Nuxt app and explore Prisma Studio in Nuxt Dev tools. Read more in our blog post.

Prisma badges are now available

Built something awesome with Prisma? ๐ŸŒŸ Show it off with these badges, perfect for your readme or website. Learn more about embedding the badges.

GQv4JpCX0AEymn-.jpg