nikolasburk
Json
and Enum
Support
We just added Json
and enum
support to the MongoDB provider
for Prisma Client. Here's a sample schema with both:
prisma
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["mongodb"]
}
model Log {
id String @id @default(dbgenerated()) @map("_id")
message String
level Level @default(Info)
meta Json
}
enum Level {
Info
Warn
Error
}
As a reminder, the mongodb
provider is still in Early Access. If you'd like to use MongoDB with Prisma, please fill out this 2-minute Typeform and we'll get you an invite to our Getting Started guide and private Slack channel right away!
🚀 New features for the Prisma Data Platform
The Prisma Data Platform (PDP) helps developers collaborate better in projects that are using Prisma's open-source tools. One of its main features is an online data browser. In addition to this, you can now also view your Prisma schema, as well as delete and edit projects. Since recently, you can now also connect databases that are running behind a proxy server to your PDP projects using a static IP address.
📚 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, my colleague @ryan and I will discuss the latest release and other news from the Prisma ecosystem in a livestream on YouTube on Thursday at 5pm Berlin | 8am San Francisco.
🌎 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
We look forward to seeing you there! 👋