menu

Prisma

πŸ”΄ The Prisma Spectrum community is not officially managed by Prisma's support team any more. Please seek help on GitHub or on Slack instead. Learn more: https://spectrum.chat/prisma/general/where-and-how-to-best-seek-help-with-questions-problems~687a1b8f-8658-4df3-8849-ea5ab3503f28

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Beta
view-forward
# Community
view-forward
# GraphQL
view-forward
# OSS
view-forward
# Random
view-forward
Team

πŸš€ Releasing Prisma v1.31

April 17, 2019 at 3:20pm

πŸš€ Releasing Prisma v1.31

April 17, 2019 at 3:20pm
Hey everyone, we've just released Prisma v1.31 πŸš€
This release features an improved datamodel syntax (breaking change) that gives developers more control over the database layout created by Prisma. Here are a few things that are now possible with the new datamodel:
  • Specify whether a relation should use a relation table or foreign keys
  • Model and field names can differ from the names of the underlying tables and columns
  • Use any field as id field and "bring your own ID"
  • Use any field as createdAt or updatedAt fields
You can read everything about the new features in the announcement blog post.
Learn how to upgrade your existing projects in the docs or by following this tutorial video.
By the way, we have also improved our introspection worfklows a lot! This makes it even easier for developers to get started with Prisma using a legacy database. Oh, and we've finally enabled introspection for MySQL databases as well 😼

April 17, 2019 at 4:20pm
Great Job !
  • reply
  • like
hope to see the integration with faunaDB ;)
  • reply
  • like
Does this new datamodel work with mongoDB?
  • reply
  • like
I am using Prisma to build an all new app (new DB, too). This update seems like it may be more geared toward those who are using legacy DBs. Is that the case, or are there great benefits to those like me who are building green-field projects?
  • reply
  • like
MongoDB actually was initially launched with the new datamodel syntax, so yes it works also with Mongo πŸ™‚ there are minor differences though such that the SQL connectors don't support embedded types yet, while the Mongo connector does support them (we'll document these differences in more detail soon).
Edited
like-fill
1
  • reply
  • like
Show more messages