nikolasburk
Json
type. JSON filtering support is available in PostgreSQL and MySQL.
You can try it today by adding the filterJson
preview flag to your generator
block. This has been one of our most popular feature requests, so we're very excited to be getting it into your hands! For an example of what JSON filtering looks like in practice, check out the release notes.
🌱 Improvement for prisma db seed
In previous versions, a seed file could only be executed as a script. prisma db seed
was simply executing the script by either calling node ./prisma/seed.js
for JavaScript or ts-node ./prisma/seed.ts
for TypeScript.
Now, you can directly export a function that Prisma executes on your behalf. To learn more about this feature, check out the release notes.
⚠️ Breaking change
The options in groupBy
queries are now prefixed with an underscore.
Before `2.23.0`:
const result = await prisma.user.groupBy({
by: ['name'],
count: true,
})
2.23.0
and later:
const result = await prisma.user.groupBy({
by: ['name'],
_count: true,
})
For more details, check out the release notes.
📚 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 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
As usual, @ryan and I will discuss the latest release and other news from the Prisma ecosystem in a on Thursday at 5pm Berlin | 8am San Francisco which is in ~1 hour.
🌎 Prisma Day is happening on June 29/30
Save the date for Prisma Day 2021 and join us for two days of talks and workshops by the most exciting members of the Prisma community:
• June 29th: Workshops
• June 30th: Talks (Submit a talk proposal — CfP deadline is on Sunday)
We look forward to seeing you there! 👋