Prisma: 5.8.0 Release

Release date:
January 9, 2024
Previous version:
5.7.1 (released December 18, 2023)
Magnitude:
1,646 Diff Delta
Contributors:
7 total committers
Data confidence:
Commits:

55 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored December 16, 2023
Authored December 7, 2023
Authored December 16, 2023

Top Contributors in 5.8.0

aqrln
Jolg42
millsp
SevInf
prisma-bot
tinola
renovate-bot

Directory Browser for 5.8.0

All files are compared to previous version, 5.7.1. Click here to browse diffs between other versions.

Loading File Browser...

Release Notes Published

๐ŸŒŸ Help us spread the word about Prisma by starring the repo or posting on X about the release. ๐ŸŒŸ

Highlights

Happy New Year from your friends at Prisma! ๐ŸŽŠ

In the last 4 weeks, we resolved some bugs on the ORM and made some progress on some exciting features that weโ€™re not yet ready to announce. Stay tuned for the upcoming releases, in which weโ€™ll be announcing new features. ๐Ÿ˜‰

relationJoins improvements: Relation loading strategy per query (Preview)

In version 5.7.0, we released relationJoins into Preview. The relationJoins feature enables support for JOINs for relation queries.

This release adds support for the ability to specify the strategy used to fetch relational data per query when the Preview feature is enabled. This will enable you to choose the most efficient strategy for fetching relation data depending on your use case.

You can now load relation data using either of the following strategies:

  • join โ€” uses JOINs to fetch relation data
  • query โ€” uses separate queries to fetch relation data

When the relationJoins Preview feature is enabled, by default, the relation fetching strategy used is join. You can override the default behavior by using the relationLoadStrategy query option.

To get started, enable the Preview feature:

// schema.prisma
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["relationJoins"]
}

โ€ฆ and specify the relation loading strategy for your query as follows:

await prisma.user.findMany({
  relationLoadStrategy: 'query',
  include: {
    posts: true,
  },
})

Try it out and share your feedback and create a bug report if you encounter any issues.

Survey: Edge functions support

Weโ€™re working on bringing Edge function support to Prisma ORM and we would appreciate your input by submitting a response to our survey. By filling out the survey, you will be considered for our Early Access cohort as soon as we have something for you to try out.

Fixes and improvements

Prisma Client

Prisma Migrate

Language tools (e.g. VS Code)

Credits

Huge thanks to @anuraaga, @onichandame, @LucianBuzzo, @RobertCraigie, @fqazi, @KhooHaoYit, @alencardc, @Oreilles, @tinola, @AikoRamalho, @luxaritas for helping!

Company news

๐ŸŽ‰ย A billion queries and counting: Prisma Accelerate

Prisma Accelerate, our global database cache has served over 1 billion queries since its General Availability launch.

Weโ€™d like to give a shoutout to our team and everyone whoโ€™s been with us on this journey. Stay tuned for some exciting products and features in the pipeline for 2024!

๐Ÿ”ฎย Prisma ORM Ecosystem

Are you building a cool tool, extension, generator, CLI tool or anything else, for Prisma ORM? Let us know.

We would like to learn about it and feature it on our Ecosystem page.

๐Ÿ’ผย Weโ€™re hiring

If you're interested in joining our growing team to help empower developers to build data-intensive applications, Prisma is the place for you. Check out our Careers page for open positions.