https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • m

    Mahmoud

    07/13/2021, 3:02 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma 2.27.0 prisma rainbow ๐ŸŽ‰ MongoDB is Now in Preview Weโ€™re thrilled to announce that Prisma now has Preview support for MongoDB ๐Ÿš€ Inside your
    schema.prisma
    file, youโ€™ll need to set the database provider to
    mongodb
    . Youโ€™ll also need to add
    mongoDb
    to the
    previewFeatures
    property in the
    generator
    block:
    Copy code
    // Set the database provider to "mongodb"
    datasource db {
      provider = "mongodb"
      url      = env("DATABASE_URL")
    }
    
    // We want to generate a Prisma Client
    // Since mongodb is a preview feature, we need to enable it.
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["mongoDb"]
    }
    
    // Create our Post model which will be mapped to a collection in the database.
    // The id attributes tell Prisma it's a primary key and to generate 
    // object ids by default when inserting posts.
    model Post {
      id    String @id @default(dbgenerated()) @map("_id") @db.ObjectId
      slug  String @unique
      title String
      body  String
    }
    Youโ€™ll also need to add a database connection string to your
    .env
    file. We recommend using MongoDB Atlas to spin up a MongoDB database for free. Learn more in our Getting Started Guide We would love to know your feedback! If you have any comments or run into any problems weโ€™re available in this issue. You can also browse existing issues that have the MongoDB label. โšก๏ธ Prisma native support for M1 Macs This oneโ€™s for our Mac users. Prisma now runs natively on the new M1 chips. Best of all, thereโ€™s nothing to configure, it just works. Enjoy the speed bump! ๐Ÿ“š 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 @ryan and @Daniel Norman 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 rainbow 74
    ๐Ÿ’ฏ 49
    ๐Ÿ”ฅ 64
    fast parrot 52
    ๐Ÿš€ 28
    ๐Ÿ˜Ž 10
    ๐Ÿฆœ 13
    prismo gif 9
    ๐ŸŽ‰ 41
    ๐Ÿ‡ฐ๐Ÿ‡ท 19
    ๐Ÿค– 7
    typescript 14
    โœจ 9
    ๐Ÿ’š 6
    ๐Ÿ’ฅ 6
    ๐ŸŽค 4
    prisma cool 30
    ๐Ÿ“ฃ 7
    ๐ŸŽ 8
    โค๏ธ 10
    ๐Ÿ‘€ 5
    prisma green 11
    ๐ŸŒถ๏ธ 9
    ๐Ÿณ๏ธโ€๐ŸŒˆ 3
    ๐Ÿ‡ฌ๐Ÿ‡พ 1
    ๐Ÿ‡ต๐Ÿ‡ฑ 1
    ๐Ÿ‡ฟ๐Ÿ‡ผ 1
    ๐Ÿ‡ฎ๐Ÿ‡ณ 10
    catjam 9
    ๐Ÿ‡ฉ๐Ÿ‡ช 3
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 3
    pokemon pidgeot 1
    ๐Ÿ‡ฏ๐Ÿ‡ฒ 3
    mexico parrot 2
    ๐Ÿ‘ 2
    cat on keyboard 2
    ๐Ÿ‡ฉ๐Ÿ‡ฏ 1
    ๐Ÿˆโ€โฌ› 2
    ๐Ÿ‡ฑ๐Ÿ‡ป 1
    ๐Ÿ‡ป๐Ÿ‡ช 2
    ๐Ÿ‡ซ๐Ÿ‡ท 2
    ๐Ÿ‡ณ๐Ÿ‡ด 2
    ๐Ÿˆ 1
    ๐Ÿ… 1
    ๐Ÿฅผ 1
    ๐Ÿ‡ท๐Ÿ‡ด 1
    ๐Ÿฑ 1
    ๐Ÿ† 1
    ๐Ÿฏ 2
    ๐Ÿ‡จ๐Ÿ‡ญ 3
  • m

    Mahmoud

    07/27/2021, 10:57 AM
    Hey <!everyone>ย โœŒ๏ธย prisma cool We just released Prismaย 2.28.0ย prisma rainbow ๐Ÿš€ย MongoDB improvements Thanks to your feedback, we fixed a handful of bugs reported on the MongoDB connector which is currently in Preview. Please continue sharingย your feedbackย and reporting issues and help us bring MongoDB support to GA! โณย Create new Prisma projects in under 3 minutes The latest release of the Prisma Data Platform enables you to create new Prisma projects and provision a database in under 3 minutes. The Application Data Platform already enables you to: - Explore data in the database using the data browser. - Add other users to it, such as your teammates or your clients. - Assign users one of four roles: Admin, Developer, Collaborator, Viewer. - View and edit your data collaboratively online. The new onboarding flow makes it possible to get started with Prisma quickly for new Prisma projects! When creating a new project, the Application Data Platform allows you to: - Choose a Prisma schema from a selection of our templates. - Create a free PostgreSQL database on Heroku. - Populate the database with seed data. If you already have a Prisma project, you can continue to import it from GitHub and connect it to your database. This whole process now takes less than 3 minutes to set up, so weโ€™re looking forward to seeing how you will use this feature for your prototyping and production needs. If you have any issues or questions, let us know byย opening a Github issue. ๐Ÿ‘€ย Interested in Prismaโ€™s upcoming Data Proxy for serverless backends? Get notified! Database connection management in serverless backends is challenging: opening new DB connections is expensive which increases latency to serve user requests and serverless functions tend to exhaust the DB connection limit. At Prisma, we are working on the Prisma Data Proxy that helps you scale serverless applications using traditional relational and NoSQL databases in Prisma-backed applications a breeze. If you are interested, you can sign up to get notified of our upcoming Early Access Program here: https://pris.ly/prisma-data-proxy ๐Ÿ“šย 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 @Daniel Norman ย 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.
    ๐Ÿ˜ 3
    ๐Ÿ‡ฒ๐Ÿ‡พ 9
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 2
    node parrot 2
    ๐Ÿˆโ€โฌ› 1
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 2
    ๐Ÿ‡ฉ๐Ÿ‡ฏ 1
    ๐Ÿฑ 1
    ๐Ÿ‡ป๐Ÿ‡ช 1
    ๐Ÿ‡ฟ๐Ÿ‡ฆ 1
    ๐Ÿš€ 16
    ๐ŸŽ‰ 9
    ๐Ÿ˜Ž 6
    ๐Ÿ™Œ๐Ÿฝ 1
    ๐Ÿ’ฏ 28
    ๐Ÿ‡ง๐Ÿ‡ฆ 4
    โค๏ธ 37
    prisma rainbow 26
    fast parrot 20
    prisma green 14
    โœจ 5
    ๐Ÿฆœ 7
    ๐Ÿ‡ฎ๐Ÿ‡ณ 13
    ๐Ÿ‘ 4
    ๐Ÿ‡ซ๐Ÿ‡ท 1
    ๐Ÿ‡ฟ๐Ÿ‡ผ 1
    ๐Ÿ‡ฏ๐Ÿ‡ต 3
    ๐Ÿ‡ฎ๐Ÿ‡ฉ 1
    india parrot 1
    ๐Ÿ‡ฆ๐Ÿ‡ท 1
    ๐Ÿ‡ท๐Ÿ‡บ 3
    ๐Ÿ‡ต๐Ÿ‡ฐ 1
    ๐Ÿ‡ฐ๐Ÿ‡ท 27
    ๐Ÿ‡ต๐Ÿ‡ฑ 5
    catjam 6
    prisma cool 6
    ๐Ÿ”ฅ 6
    typescript 16
    ๐Ÿ‘ 7
    ๐Ÿ™Œ 9
    ๐Ÿณ๏ธโ€๐ŸŒˆ 1
    ๐Ÿ‡ง๐Ÿ‡ท 2
    ๐Ÿ‘๐Ÿฝ 1
    ๐Ÿ‡จ๐Ÿ‡บ 1
    ๐Ÿ‡ต๐Ÿ‡ธ 1
    ๐Ÿ‡ช๐Ÿ‡ฌ 1
    ๐Ÿ‡ฐ๐Ÿ‡ช 4
    ๐Ÿ‡จ๐Ÿ‡ณ 4
    ๐Ÿ‡ท๐Ÿ‡ด 1
    ๐Ÿ‘๐Ÿฝ 1
    ๐Ÿˆ 1
    ๐Ÿ‡ฌ๐Ÿ‡ช 1
  • m

    Mahmoud

    08/10/2021, 5:12 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma 2.29.0 prisma rainbow ๐Ÿš€ Interactive Transactions are now in Preview Today weโ€™re introducing Interactive Transactions โ€“ one of our most debated feature requests. Interactive Transactions are a double-edged sword. While they allow you to ignore a class of errors that could otherwise occur with concurrent database access, they impose constraints on performance and scalability. While we believe there are better alternative approaches we certainly want to ensure people who absolutely need them have the option available. You can opt-in to Interactive Transactions by setting the
    interactiveTransactions
    preview feature in your Prisma Schema:
    Copy code
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["interactiveTransactions"]
    }
    Note that the interactive transactions API does not support controlling isolation levels or locking for now. You can find out more about implementing use cases with transactions in the docs, and share your feedback. ๐ŸŽ‰
    namedConstraints
    are now in Preview
    So far the Prisma schema could only represent the underlying database names for
    @@unique
    and
    @@index
    . Names for primary keys and foreign keys could not be represented even when the database supported these. This could lead to problems with the names of constraints in different environments getting out of sync and generated migrations therefore failing. You can opt-in to
    namedConstraints
    by setting the
    namedConstraints
    preview feature in your Prisma Schema:
    Copy code
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["namedConstraints"]
    }
    When using
    prisma db pull
    these names will now automatically be pulled into your Prisma schema unless they match our default naming convention (which follows the Postgres convention). Please check our upgrade guide before enabling the preview flag and running migrate operations for the first time. ๐Ÿ“š 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 @Daniel Norman 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.
    canada parrot 5
    ๐Ÿ‡ต๐Ÿ‡ฑ 8
    ๐Ÿ‡ป๐Ÿ‡ช 5
    ๐Ÿ˜• 5
    ๐ŸŒŸ 6
    ๐Ÿ”ฅ 6
    pokemon squirtle 2
    ๐Ÿ‡ฐ๐Ÿ‡ท 13
    ๐Ÿ™Œ 2
    ๐Ÿ‡ซ๐Ÿ‡ฎ 1
    ๐Ÿ‡ณ๐Ÿ‡ด 1
    cat on keyboard 1
    ๐Ÿฑ 1
    ๐Ÿ‡ณ๐Ÿ‡ฌ 6
    ๐Ÿ‡ฎ๐Ÿ‡ณ 11
    ๐Ÿ‡ฆ๐Ÿ‡บ 1
    ๐Ÿ‡ฟ๐Ÿ‡ผ 1
    prisma cool 19
    โœจ 7
    ๐Ÿš€ 16
    prisma xmas 4
    southafrica parrot 5
    โค๏ธ 7
    ๐Ÿ‘ 2
    ๐Ÿ‘€ 3
    ๐Ÿ‡ซ๐Ÿ‡ท 3
    ๐Ÿˆโ€โฌ› 1
    octocat 1
    catjam 6
    ireland parrot 1
    node parrot 1
    ๐Ÿ‡ฟ๐Ÿ‡ฆ 4
    ๐Ÿ‡ช๐Ÿ‡ฌ 3
    ๐Ÿ‡ง๐Ÿ‡ท 1
    fast parrot 43
    ๐ŸŽ‰ 18
    prismo gif 10
    prisma rainbow 18
    go gopher dance 4
    ๐Ÿ‡ฌ๐Ÿ‡ช 2
    typescript 6
    ๐Ÿฅฐ 3
    ๐Ÿณ๏ธโ€๐ŸŒˆ 3
    ๐Ÿˆ 1
    ๐Ÿ˜ป 1
    ๐Ÿ… 1
    ๐Ÿ‡ท๐Ÿ‡บ 1
    australia parrot 1
    pakistan parrot 2
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 2
  • m

    Mahmoud

    08/24/2021, 4:54 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma 2.30.0 prisma rainbow ๐Ÿš€ Full-Text Search for PostgreSQL is now in Preview Weโ€™re excited to announce that Prisma Client now has preview support for Full-Text Search on PostgreSQL. You can give this a try in 2.30.0 by enabling the
    fullTextSearch
    preview flag:
    Copy code
    datasource db {
      provider = "postgresql"
      url      = env("DATABASE_URL")
    }
    
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["fullTextSearch"]
    }
    After you regenerate your client, youโ€™ll see a new
    search
    field on your
    String
    fields that you can query on. Hereโ€™s an example:
    Copy code
    // returns all posts that contain the words cat *or* dog.
    const result = await prisma.post.findMany({
      where: {
        body: {
          search: 'cat | dog',
        },
      },
    })
    You can learn more about how the query format works in our documentation. We would love to know your feedback! If you have any comments or run into any problems weโ€™re available in this in this Github issue. โ„น๏ธ Validation errors for referential action cycles on Microsoft SQL Server Prisma now checks for referential cycle actions when it validates your schema file and shows you the exact location of the cycle in your schema when using Microsoft SQL Server. ๐Ÿ‘‹๐Ÿป
    prisma introspect
    is being deprecated in favor of
    prisma db pull
    The
    prisma introspect
    command is an alias for
    prisma db pull
    , which allows you to pull the schema from the database into your local
    schema.prisma
    file. Starting with this release, you will get a warning that encourages you to use
    prisma db pull
    instead of
    prisma introspect
    . ๐Ÿ“š 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 @Mahmoud 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.
    ๐Ÿ˜ 28
    ๐ŸŽ‰ 15
    ๐Ÿ‡ฉ๐Ÿ‡ช 3
    ๐Ÿ‡ฐ๐Ÿ‡ท 12
    ๐Ÿ‡ฐ๐Ÿ‡ช 5
    prisma rainbow 59
    ๐Ÿค‘ 9
    ๐Ÿš€ 9
    ๐Ÿ‡ณ๐Ÿ‡ด 2
    go gopher dance 3
    ๐Ÿ‡ฟ๐Ÿ‡ฆ 2
    gopher yes 1
    ๐Ÿ‡ซ๐Ÿ‡ท 4
    ๐Ÿ™Œ 5
    ๐Ÿ‡ช๐Ÿ‡ฌ 7
    ๐ŸŽ 3
    prisma cool 5
    fast parrot 69
    ๐Ÿ”ฅ 25
    ๐Ÿณ๏ธโ€๐ŸŒˆ 5
    party postgres 7
    prisma xmas 3
    ๐Ÿ“ฃ 2
    ๐Ÿ˜Ž 2
    ๐Ÿ” 1
    prisma green 5
    ๐Ÿ‡ง๐Ÿ‡ท 5
    pride 2
    ๐Ÿ‡ฑ๐Ÿ‡ฐ 1
    ๐Ÿ‡ฆ๐Ÿ‡ฑ 1
    ๐Ÿ‡ณ๐Ÿ‡ฌ 4
    ๐Ÿ‡ต๐Ÿ‡ฑ 2
    ๐Ÿ‡ฒ๐Ÿ‡ฝ 1
    ๐Ÿ‘ 6
    ๐ŸŒถ๏ธ 4
    โœจ 4
    typescript 8
    โค๏ธ 5
    ๐Ÿคฉ 3
    prismo gif 5
    ๐Ÿ‡ฌ๐Ÿ‡พ 1
    ๐Ÿ‡ฎ๐Ÿ‡ณ 11
    ๐Ÿ‡ฎ๐Ÿ‡น 1
    ๐Ÿ‡ป๐Ÿ‡ช 1
    ๐Ÿ‡ฝ๐Ÿ‡ฐ 2
    catjam 3
    ๐Ÿ‡ต๐Ÿ‡ฐ 2
    ๐Ÿ‡บ๐Ÿ‡ฆ 1
    ๐Ÿ‡จ๐Ÿ‡ฒ 2
    ๐Ÿ‡ฟ๐Ÿ‡ผ 2
  • d

    Daniel Norman

    09/07/2021, 5:39 PM
    Hey <!everyone> โœŒ๏ธ prisma cool, We excited to announce that we just released Prisma 3.0.1 prisma rainbow This is a big release with many major improvements and some breaking changes, hence the major version bump ๐Ÿ“ˆ For all the breaking changes, there are guides and documentation to assist you with the upgrade process ๐Ÿงฐ This release promotes many Preview features to General Availability. This means that they are ready for production use and have passed rigorous testing both internally and by the community. Todayโ€™s release brings the following features the General Availability: prisma Referential Actions prisma red Named Constraints prisma darkblue Microsoft SQL Server and Azure SQL Connector prisma Seeding with
    prisma db seed
    has been revamped
    prisma red Node-API prisma darkblue Order by Aggregate in Group By prisma Order by Relation prisma red Select Relation Count ๐Ÿค“ To read more about the GA release of the M*icrosoft SQL Server* and Azure SQL Connector, check out the blog post ๐Ÿ“š We recommend that you carefully read through the breaking changes in the release notes and make sure that youโ€™ve correctly upgraded your application.๐Ÿ“š prisma rainbow Help us spread the word about Prisma prisma rainbow To help spread the word about Prisma, weโ€™d appreciate it 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 3.0.1โ–พ

    *

    livestreamโ–พ

    , where @User 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. ๐Ÿ“บ If you havenโ€™t already, be sure to subscribe to our YouTube channel, so you get notified about new videos and livestreams!
    go gopher dance 4
    ๐Ÿ’ฅ 3
    prisma dark 4
    ๐Ÿ’… 3
    ๐Ÿณ๏ธโ€๐ŸŒˆ 21
    gopher yes 9
    ๐Ÿ‘ 16
    ๐Ÿ™Œ 14
    ๐Ÿ‡บ๐Ÿ‡ธ 6
    ๐ŸŽ‰ 12
    ๐Ÿ‘€ 5
    ๐Ÿ’Ž 6
    โค๏ธ 48
    prisma rainbow 54
    fast parrot 35
    ๐Ÿ‡ซ๐Ÿ‡ท 6
    ๐Ÿ’š 8
    ๐Ÿ‡ต๐Ÿ‡ท 2
    prisma cool 7
    ๐Ÿ”ฎ 3
    ๐Ÿ‡ฆ๐Ÿ‡บ 1
    ๐Ÿ‡ฎ๐Ÿ‡ณ 10
    alphabet white hash 1
    ๐Ÿ‡ต๐Ÿ‡ฐ 1
    ๐Ÿ‡ฐ๐Ÿ‡ท 14
    ๐Ÿ‡ฉ๐Ÿ‡ฏ 1
    ๐Ÿ‡ซ๐Ÿ‡ฎ 15
    ๐Ÿ’ฏ 66
    party postgres 18
    ๐Ÿฅฐ 10
    ๐Ÿ‡ฏ๐Ÿ‡ต 8
    ๐Ÿ‡ธ๐Ÿ‡ป 4
    ๐Ÿฆœ 5
    ๐Ÿ‡ต๐Ÿ‡ฑ 3
    ๐Ÿ‡จ๐Ÿ‡ฆ 5
    ๐Ÿ‡ง๐Ÿ‡ด 5
    ๐Ÿ‡ช๐Ÿ‡น 3
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 3
    ๐Ÿ’…๐Ÿป 1
    microsoft 2
    ๐Ÿ‡ฉ๐Ÿ‡ฐ 1
    ๐Ÿ‡ณ๐Ÿ‡ด 2
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 1
    ๐Ÿ‡น๐Ÿ‡ท 3
    ๐Ÿ‡ณ๐Ÿ‡ฟ 2
    ๐Ÿ‡ฐ๐Ÿ‡ช 5
    ๐Ÿ‡ง๐Ÿ‡ท 3
    ๐Ÿ‡ฑ๐Ÿ‡ฐ 1
    ๐Ÿ‡ฟ๐Ÿ‡ผ 1
    ๐Ÿ‡ฉ๐Ÿ‡ช 1
    ๐Ÿ‡ฒ๐Ÿ‡ฆ 1
  • d

    Daniel Norman

    09/21/2021, 4:15 PM
    ๐Ÿ“– You can get started with the Go Client using ourย Quick Start Guide. ๐Ÿ“š Learn more about Full-Text Search inย our documentation. prisma rainbow Help us spread the word about Prisma prisma rainbow To help spread the word about Prisma, weโ€™d appreciate it if you would star the repo ๐ŸŒŸ If youโ€™re excited about the features in this weekโ€™s release, then help us and retweet the release Tweet on Twitter ๐Ÿ™Œ ๐ŸŽฅ Join us on Thursday for the *

    Whatโ€™s new in Prisma 3.1.1โ–พ

    *

    livestreamโ–พ

    , where 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. ๐Ÿ“บ If you havenโ€™t already, be sure to subscribe to our YouTube channel, so you get notified about new videos and livestreams!
    ๐Ÿ‡ต๐Ÿ‡ฑ 2
    go gopher dance 1
    ๐Ÿ˜˜ 1
    ๐Ÿ‡ง๐Ÿ‡ท 2
    ๐Ÿ‡จ๐Ÿ‡ณ 1
    ๐Ÿ‡ณ๐Ÿ‡ฌ 3
    ๐ŸŽ‰ 2
    ๐Ÿ‡ฐ๐Ÿ‡ท 2
  • d

    Daniel Norman

    09/21/2021, 4:15 PM
    Hey <!everyone> โœŒ๏ธ prisma cool, We are excited to announce that we just released *Prisma 3.1.1* prisma rainbow Todayโ€™s release includes the following major improvements: prisma Referential Integrity in in Preview Relational databases typically ensure integrity between relations with foreign key constraints, for example, given a 1:n relation betweenย 
    User:Post
    , you can configure the deletion of a user to cascade to posts so that no posts are left pointing to a User that doesnโ€™t exist. In Prisma, these constraints are defined in the Prisma schema with theย 
    @relation()
    ย attribute. However, databases likeย PlanetScaleย do not support defining foreign keys. To work around this limitation so that you can use Prisma with PlanetScale, weโ€™re introducing a newย 
    referentialIntegrity
    ย setting inย Preview. This was initially introduced in versionย 
    2.24.0
    ย of Prisma with theย 
    planetScaleMode
    ย Preview feature and setting. Starting with this release both have been renamed toย 
    referentialIntegrity
    . The setting lets you control whether referential integrity is enforced by the database with foreign keys (default), or by Prisma, by settingย 
    referentialIntegrity = "prisma"
    . Setting Referential Integrity toย 
    prisma
    ย has the following implications: โ€ข Prisma Migrate will generate SQL migrations without any foreign key constraints. โ€ข Prisma Client will emulate foreign key constraints andย referential actionsย on a best-effort basis. You can give it a try in versionย 3.1.1ย by enabling theย 
    referentialIntegrity
    ย preview flag:
    Copy code
    datasource db {
      provider             = "mysql"
      url                  = env("DATABASE_URL")
      referentialIntegrity = "prisma"
    }
    
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["referentialIntegrity"]
    }
    โš ๏ธ Note that Referential Integrity is set to
    prisma
    by default when using MongoDB. ๐Ÿ“šLearn more about Referential Integrity inย our documentation. prisma red Full-Text Search for the Go Client In an earlier release, we added Full-Text Search (for PostgreSQL) to the Typescript Client. This was released as a Preview feature. In this release, weโ€™ve added that Preview feature to the Go Client. Enable it in your Go project by adding theย 
    fullTextSearch
    ย preview feature. Hereโ€™s an example:
    Copy code
    // Fetch all drafts with a title that contains the words fox or dog
    posts, _ := client.Post.FindMany(
      db.Post.Title.Search("fox | dog"),
      db.Post.Status.Equals("Draft"),
    ).Exec(context.Background())
    
    // Loop over the posts and print the title
    for _, post := range posts {
      fmt.Println(post.Title)
    }
    ๐Ÿ‡ฆ๐Ÿ‡บ 1
    fast parrot 30
    ๐Ÿ”ฅ 8
    ๐Ÿณ๏ธโ€๐ŸŒˆ 6
    ๐Ÿ™ 4
    ๐Ÿ’ฅ 3
    party postgres 4
    ๐Ÿ‡ฐ๐Ÿ‡ท 11
    ๐Ÿ˜Ž 1
    ๐Ÿ‡ซ๐Ÿ‡ท 2
    ๐Ÿ‡บ๐Ÿ‡ฆ 1
    ๐Ÿ‡ฑ๐Ÿ‡ฐ 1
    ๐Ÿ’š 8
    ๐Ÿ‡ฎ๐Ÿ‡ณ 8
    ๐Ÿ‡ฉ๐Ÿ‡ช 5
    ๐Ÿ‡ฌ๐Ÿ‡ช 2
    prisma green 6
    ๐ŸŽ‰ 5
    go gopher dance 3
    ๐Ÿ’ฏ 11
    โค๏ธ 24
    ๐Ÿ˜ 6
    ๐Ÿ‡ฏ๐Ÿ‡ต 6
    ๐Ÿ‡ฐ๐Ÿ‡ช 5
    ๐Ÿš€ 5
    โœจ 3
    prisma xmas 2
    ๐Ÿ‡ต๐Ÿ‡ฐ 2
    ๐Ÿ‡ป๐Ÿ‡ช 1
    ๐Ÿ‡ฟ๐Ÿ‡ผ 1
    โœ… 1
    ๐Ÿ‡ง๐Ÿ‡ด 1
    ๐Ÿ‡ป๐Ÿ‡ณ 2
    ๐Ÿ‡ฉ๐Ÿ‡ฏ 1
    ๐Ÿ‡ฒ๐Ÿ‡ฆ 1
    ๐Ÿ‡ณ๐Ÿ‡ฟ 1
    ๐Ÿ‡ต๐Ÿ‡ฑ 1
    ๐Ÿ‡ณ๐Ÿ‡ฌ 2
    prisma rainbow 13
  • n

    nikolasburk

    10/05/2021, 3:31 PM
    Hey <!everyone>ย โœŒ๏ธย prisma cool We just released Prismaย 3.2.0ย prisma rainbow ๐Ÿ•ต๏ธโ€โ™€๏ธย MongoDB introspection support is now in Preview In this version, we introduce support for introspecting MongoDB databases. If adding Prisma to an existing project, runningย 
    prisma db pull
    ย against a MongoDB database withย existing dataย will sample the data and create a Prisma data model based on the stored documents. This comes with a few caveats: โ€ข The preview featureย 
    mongoDb
    ย must be enabled on theย 
    datasource
    ย block in the Prisma schema. โ€ข The MongoDB instance must have at least one collection with at least one document. โ€ข To introspect indices, there must be at least one document in the collection with the indexed fields. โ€ข If any fields have conflicting types, the most common type is chosen and the other types are written to a comment above the field in the Prisma schema. โ€ข Relations must be added manually after introspection. โ€ข Runningย 
    prisma db pull
    ย multiple times will overwrite any added text in the data model for now. We're constantly iterating on this feature, so please provideย feedbackย for introspecting MongoDB databases! ๐Ÿ”ขย Get the count of a relation in MongoDB This release, we're giving MongoDB developers the ability to query the count of a relation. In the example below, we're getting the number of posts each user wrote:
    Copy code
    const userWithPostsCount = await prisma.user.findMany({
      include: {
        _count: {
          select: { posts: true },
        },
      },
    })
    
    // => [
    //      { 
    //        email: "<mailto:alice@prisma.io|alice@prisma.io>",
    //        _count: { posts: 3 }
    //      }
    //    ]
    This feature was previously available for SQL databases and now it's also available in MongoDB. Learn more in ourย documentation. ๐Ÿ“šย 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 This week, my colleagueย @Daniel Normanย 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.
    ๐Ÿ‡ฐ๐Ÿ‡ท 17
    ๐Ÿ‡บ๐Ÿ‡ธ 2
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 1
    ๐Ÿ‘Ž 1
    ๐Ÿ‡ซ๐Ÿ‡ฎ 3
    ๐Ÿ‡ง๐Ÿ‡ด 3
    ๐Ÿ‡ฎ๐Ÿ‡ณ 10
    ๐Ÿ‡ฑ๐Ÿ‡ป 2
    ๐Ÿ‡ฏ๐Ÿ‡ต 6
    ๐Ÿ‡ฎ๐Ÿ‡น 1
    ๐Ÿ’…๐Ÿผ 1
    ireland parrot 2
    ๐Ÿ‡ฐ๐Ÿ‡ช 3
    parrotwave7 2
    ๐Ÿ‡ฟ๐Ÿ‡ผ 1
    ๐Ÿ‡ฆ๐Ÿ‡บ 3
    ๐Ÿ‡ฉ๐Ÿ‡ช 4
    ๐Ÿ’Ÿ 3
    ๐Ÿณ๏ธโ€๐ŸŒˆ 6
    ๐Ÿฆฅ 2
    ๐Ÿค‘ 2
    ๐Ÿ“ด 1
    ๐Ÿ‡ฌ๐Ÿ‡ง 4
    ๐Ÿฟ๏ธ 2
    ๐Ÿ‡ช๐Ÿ‡ฌ 3
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 1
    ๐Ÿ‡ฑ๐Ÿ‡ฐ 1
    ๐Ÿ‡ซ๐Ÿ‡ท 1
    ๐Ÿ’…๐Ÿฝ 1
    ๐Ÿ‡ง๐Ÿ‡ท 6
    ๐Ÿ˜œ 10
    prisma rainbow 27
    ๐Ÿ˜ 3
    ๐Ÿ’… 3
    ๐Ÿ˜‹ 2
    ๐Ÿ‡ป๐Ÿ‡ช 1
    australia parrot 2
    fast parrot 28
    ๐Ÿ’ฐ 2
    ๐Ÿ‡น๐Ÿ‡ท 2
    ๐Ÿ‡ป๐Ÿ‡ณ 2
    ๐Ÿฆ˜ 1
    ๐Ÿ™Œ 2
    prisma cool 34
    ๐Ÿ˜ 8
    ๐ŸŽ‰ 8
    ๐Ÿ’ฏ 11
    catjam 7
    serbia parrot 1
    ๐Ÿ‡ณ๐Ÿ‡ด 3
    ๐Ÿ‡ท๐Ÿ‡บ 1
  • n

    nikolasburk

    10/19/2021, 3:10 PM
    Hey <!everyone>ย โœŒ๏ธย prisma cool We just released Prismaย v3.3.0ย prisma rainbow โœจย Prisma Data Proxy support in Prisma Client in Early Access Inย 
    3.3.0
    , we're releasing Early Accessย support for Prisma Client connection pooling using theย Prisma Data Proxy. The Data Proxy feature of the Prisma Data Platform is now accessible to all users of the Prisma Data Platform (no need to request access). For detailed documentation and instructions about the Data Proxy, check outย pris.ly/data-proxy. Using this new feature in Prisma Client and leveraging the Data Proxy, developers can now also deploy Prisma applications onย Cloudflare Workers. Here's what it looks like to use Prisma Client inside of this environment:
    Copy code
    import { PrismaClient } from '@prisma/client'
    const prisma = new PrismaClient()
    
    addEventListener('fetch', (event) => {
      event.respondWith(handleRequest(event.request))
    })
    
    async function handleRequest(request: Request): Promise<Response> {
      await prisma.log.create({
        data: {
          level: 'Info',
          message: `${request.method} ${request.url}`,
        },
      })
      return new Response(`request method: ${request.method}!`)
    }
    Followย thisย deployment guideย to learn how to use Prisma Client with your own Cloudflare Workers. ๐Ÿ”€ย Support for ordering by relation fields in MongoDB Inย 
    2.16.0
    , we first introduced ordering by a relation for relational databases. As of today's release, you can now order by a relation field in MongoDB as well:
    Copy code
    ts
    // Return a list of posts ordered by the author's email address
    // in ascending order.
    await prisma.post.findMany({
      orderBy: {
        author: {
          email: "asc",
        },
      },
    })
    5๏ธโƒฃย MongoDB 5 is now supported Prisma now supports connecting to MongoDB 5 databases. Take advantage of the latest and greatest from the fine folks at MongoDB HQ and share your feedback in theย #mongodbย channel here on Slack! ๐Ÿฆฆย Prisma Client Go now supports scalar list operations Withย 
    3.3.0
    , you can now filter and atomically update scalar lists with Prisma Client Go. Given the following Prisma schema:
    Copy code
    model User {
      id   Int      @id @default(autoincrement())
      name String
      pets String[]
    }
    You can filter pets with the following code:
    Copy code
    user, err := client.User.FindFirst(
      db.User.Pets.HasSome([]string{"Fido", "Scooby"}),
    ).Exec(ctx)
    And when you add a new furry addition to your family, you can update your list withย `Push`:
    Copy code
    user, err := client.User.FindUnique(
      db.User.Name.Equals(1),
    ).Update(
      db.User.Items.Push([]string{"Charlemagne"}),
    ).Exec(ctx)
    Learn more about how to use this new feature in ourย documentationย and share your feedback in theย #prisma-client-goย channel here on Slack! ๐Ÿ“šย 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 This week, my colleagueย @Daniel Normanย 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.
    ๐Ÿ‡ซ๐Ÿ‡ฎ 6
    ๐Ÿณ๏ธโ€๐ŸŒˆ 9
    ๐Ÿš€ 19
    pikachu 3
    ๐Ÿ’š 15
    fast parrot 35
    ๐Ÿ‘๐Ÿผ 1
    ๐Ÿคฉ 5
    ๐Ÿ‘ 15
    pokemon squirtle 2
    ๐Ÿ‡ฉ๐Ÿ‡ช 4
    ๐Ÿ’…๐Ÿผ 1
    ๐Ÿ‡ฒ๐Ÿ‡ฝ 2
    ๐Ÿ‡ช๐Ÿ‡น 2
    ๐Ÿ‡ฎ๐Ÿ‡น 2
    ๐Ÿ‡ณ๐Ÿ‡ด 1
    ๐Ÿ’…๐Ÿฝ 1
    ๐Ÿ‡ป๐Ÿ‡ช 1
    ๐Ÿ‡ฐ๐Ÿ‡ช 5
    ๐Ÿ‡ณ๐Ÿ‡ฟ 2
    ๐Ÿ‡จ๐Ÿ‡ฟ 1
    ๐Ÿ‡ฒ๐Ÿ‡ฆ 1
    ๐Ÿฆฅ 4
    catjam 14
    prisma rainbow 23
    ๐Ÿฟ๏ธ 4
    prisma cool 6
    germany parrot 3
    ๐Ÿ‡ณ๐Ÿ‡ต 1
    โค๏ธ 5
    ๐Ÿ‡บ๐Ÿ‡ธ 2
    โ˜๏ธ 2
    prisma green 3
    ๐Ÿ‡ท๐Ÿ‡ด 1
    ๐Ÿ‡ซ๐Ÿ‡ท 1
    india parrot 1
    ๐Ÿ’ซ 2
    ๐Ÿ‡ฏ๐Ÿ‡ต 2
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    ๐Ÿ‡ท๐Ÿ‡บ 1
    ๐Ÿ‡ช๐Ÿ‡ฌ 1
    prisma xmas 2
    ๐Ÿ’ฏ 7
    ๐Ÿ‡ต๐Ÿ‡ฐ 4
    ๐Ÿ‘๐Ÿฝ 1
    ๐Ÿ™Œ 2
    ๐Ÿ˜ 8
    pokemon bulbasaur 2
    ๐Ÿ’… 3
    ๐Ÿ‡ฐ๐Ÿ‡ท 7
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 5
    ๐Ÿ‡ฎ๐Ÿ‡ณ 6
    ๐Ÿ‡ง๐Ÿ‡ท 2
  • n

    nikolasburk

    11/02/2021, 5:08 PM
    Hey <!everyone>ย โœŒ๏ธย prisma cool We just released Prismaย 3.4.0ย prisma rainbow ๐Ÿ˜ย Support for PostgreSQL 14 We are pleased to announce that Prisma versionย 
    3.4.0
    ย provides support for PostgreSQL 14. For a full list of our supported databases and their versions, see ourย documentation. ๐Ÿ”€ย Support for ordering by aggregate group in MongoDB In Prisma versionย 
    3.4.0
    , we add support on MongoDB databases for using theย 
    ORDER BY
    ย clause in an aggregate function. This was previously available for relational databases. For example, if the data about your applicationโ€™s users includes their city of residence, you can determine which cities have the largest user groups. The following query sorts eachย 
    city
    ย group by the number of users in that group, and returns the results in descending order (largest group first):
    Copy code
    const groupBy = await prisma.user.groupBy({
      by: ['city'],
      _count: {
        city: true,
      },
      orderBy: {
        _count: {
          city: 'desc',
        },
      },
    })
    For more information refer to ourย documentation about ordering by groups. โœจย Initial support for MongoDB inย 
    prisma db push
    Theย 
    prisma db push
    ย command is used to sync your Prisma schema and your database schema in development. Because MongoDB has a unique approach to database schema management, this initial release only syncsย 
    @unique
    ,ย 
    @@unique
    ย andย 
    @@index
    ย annotations in your schema. Check out theย release notesย for a practical example of usingย 
    prisma db push
    ย with MongoDB. ๐Ÿ”Žย Introspection of embedded documents in MongoDB For those interested in helping us getting introspection of embedded documents right, we packaged a first iteration into the CLI. More info in theย Github issue. ๐Ÿš€ย Prisma Client Go now supports the Data Proxy Connection limit issues got you down? By using Prismaโ€™s Data Proxy, you can pool your connections to avoid overloading your database. With this release, Prisma Client Go can now read and write to theย Data Proxy. Check out theย release notesย for more info about this! ๐Ÿฆฆย JSON filtering support in Prisma Client Go Weโ€™ve had JSON filtering support in the TypeScript Client since . In todayโ€™s release, weโ€™re bringing support to the Go Client. Hereโ€™s an example snippet of the API:
    Copy code
    logs, _ := client.Log.FindMany(
      db.Log.Meta.Path([]string{"service"}),
    	db.Log.Meta.Equals(db.JSON("\"api\"")),
    ).Exec(ctx)
    Learn more about how to use this new feature in ourย documentationย and share your feedback in the #prisma-client-go channel here on Slack! ๐Ÿ“šย 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. ๐ŸŒย The Prisma Serverless Data Conference is happening on November 18 Make sure to claim your ticket for our freeย Prisma Serverless Data Conferenceย about all things databases and serverless with fantastic speakers from companies like PlanetScale, MongoDB, Vercel, Netlify, Cloudflare and CockroachDB. ๐Ÿ“ฐย Join us on Thursday for the โ€œWhatโ€™s new in Prismaโ€ livestream This week, my colleagueย @Alex Ruheni ย 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.
    ๐Ÿฅฐ 7
    github icon 15
    ๐Ÿ‘ 23
    fast parrot 62
    prisma xmas 10
    ๐Ÿ™Œ 7
    ๐Ÿฟ๏ธ 5
    ๐Ÿ˜ 4
    ๐Ÿ˜Ž 3
    ๐Ÿ‡ฌ๐Ÿ‡ช 1
    ๐Ÿณ๏ธโ€๐ŸŒˆ 2
    ๐Ÿ‡ป๐Ÿ‡ช 1
    ๐Ÿ‡ฒ๐Ÿ‡พ 1
    ๐Ÿ‡ช๐Ÿ‡ธ 1
    ๐Ÿ‡ง๐Ÿ‡ด 1
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 3
    ๐Ÿ‡ฐ๐Ÿ‡ช 2
    ๐Ÿ‡ง๐Ÿ‡ท 1
    prisma rainbow 30
    catjam 9
    ๐Ÿ’š 5
    ๐Ÿ’ช 2
    ๐Ÿ’ฅ 5
    ๐Ÿ˜ 2
    ๐Ÿ™Œ๐Ÿฝ 1
    ๐Ÿ‡ฑ๐Ÿ‡ฐ 1
    ๐Ÿ‡ฐ๐Ÿ‡ท 9
    ๐Ÿ‡ฏ๐Ÿ‡ต 6
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 1
    ๐Ÿ‡ฎ๐Ÿ‡น 1
    ๐Ÿ‡ฆ๐Ÿ‡บ 2
    ๐Ÿ‡ฎ๐Ÿ‡ณ 8
    ๐Ÿ‡บ๐Ÿ‡ฌ 1
    ๐Ÿ‡ณ๐Ÿ‡ฌ 1
    prisma cool 17
    ๐Ÿฆฅ 4
    ๐Ÿคฉ 4
    ๐Ÿ‘๐Ÿฝ 1
    ๐Ÿ‡จ๐Ÿ‡ณ 1
    ๐Ÿ’ช๐Ÿฝ 1
    ๐Ÿฆœ 3
    ๐Ÿ‡ช๐Ÿ‡น 1
    ๐Ÿ‡ต๐Ÿ‡ฐ 1
    ๐Ÿ‡ท๐Ÿ‡บ 2
    ๐Ÿ‡บ๐Ÿ‡ธ 2
    ๐Ÿ‡ฌ๐Ÿ‡ญ 1
    ๐Ÿ‡ต๐Ÿ‡ฑ 2
    ๐Ÿ‡ช๐Ÿ‡ฌ 1
    serbia parrot 2
  • n

    nikolasburk

    11/16/2021, 3:28 PM
    Hey <!everyone>ย โœŒ๏ธย prisma cool We just released Prismaย 3.5.0ย prisma rainbow Here is whatโ€™s new! ๐Ÿ˜ย Order by relevance in full text search (PostgreSQL) Inย 
    3.5.0
    , weโ€™ve added support for ordering full text search results byย relevance. Ordering by relevance gives you a way to order search results by the best match. While this feature is useful standalone, itโ€™s most commonly used in combination with the full textย 
    search
    ย field in theย 
    where
    ย clause:
    Copy code
    const query = "node.js developer"
    const developers = await prisma.people.findMany({
      where: {
        bio: {
          // Only select people whose bio's contain "node.js developer"
          search: query,
        },
      },
      orderBy: {
        // Order that selection by query relevance.
        _relevance: {
          fields: ["bio"],
          search: query,
          sort: "desc",
        },
      },
    })
    Learn more in ourย documentationย and if you run into any issues or have feedback for us, you can reach us in thisย issue. โš™๏ธย More configuration options for indexes and constraints in the Prisma schema (Preview) We are extending the syntax in the Prisma schema to add support forย configuration of lengthย andย sort orderย for: โ€ข indexes โ€ข unique constraints โ€ข primary key constraints The following example demonstrates the use of theย 
    sort
    ย andย 
    length
    ย arguments:
    Copy code
    model Post {
        title       String @db.VarChar(300)
        abstract    String @db.VarChar(3000)
        slug        String @db.VarChar(3000) @unique(sort: Desc, length: 42)
        author      String
        created_at  DateTime
    
        @@id([title(length: 100, sort: Desc), abstract(length: 10)])
        @@index([author, created_at(sort: Desc)])
    }
    โš ๏ธย Warning:ย This might be aย breaking changeย for some users. To learn how to mitigate that, please read the documentation linked below. Learn more in theย documentationย on index configuration. ๐Ÿฆฆย Case insensitive filtering for Prisma Client Go Weโ€™ve had this feature in the Prisma Client JS for a while, but in this release, weโ€™ve added case-insensitive query support to the Go Client as well. Now you can worry a bit less about what kind of data the user is going to send your way.
    Copy code
    users, err := client.User.FindMany(
        User.Email.Equals("prisMa"),
        User.Email.Mode(QueryModeInsensitive), // sets case insensitivity
    ).Exec(ctx)
    Learn more in ourย documentationย and share your feedback in the #prisma-client-go channel here on Slack! ๐Ÿ“šย 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. ๐ŸŒย The Prisma Serverless Data Conference is happening on Thursday (Nov 18) Make sure to claim your ticket for our freeย Prisma Serverless Data Conferenceย about all things databases and serverless with fantastic speakers from companies like PlanetScale, MongoDB, Vercel, Netlify, Cloudflare and CockroachDB. ๐Ÿ“ฐย Join us on Wednesday(!!!) for the โ€œWhatโ€™s new in Prismaโ€ livestream This week, my colleagueย @Daniel Normanย and I will discuss the latest release and other news from the Prisma ecosystem in aย 

    livestream on YouTubeโ–พ

    ย onย Wednesday at 5pm Berlin | 8am San Francisco.
    ๐Ÿ‘€ 1
    ๐Ÿ‡ต๐Ÿ‡ฐ 1
    prisma cool 19
    ๐Ÿ‡ฉ๐Ÿ‡ช 1
    ๐Ÿ‡ต๐Ÿ‡ฑ 5
    ๐Ÿ˜ 18
    ๐Ÿ’š 7
    ๐ŸŽค 2
    ๐Ÿ˜ 4
    typescript 18
    ๐Ÿ™Œ๐Ÿฝ 1
    ๐Ÿ‡ฌ๐Ÿ‡ท 3
    ๐Ÿฆฅ 1
    ๐Ÿ‡ซ๐Ÿ‡ท 5
    ๐Ÿ‡ช๐Ÿ‡น 1
    ๐Ÿ‡ฟ๐Ÿ‡ผ 1
    fast parrot 66
    ๐ŸŒŸ 5
    ๐Ÿคฉ 3
    prisma xmas 5
    ๐Ÿ”ฅ 4
    ๐Ÿ‡ฎ๐Ÿ‡ณ 8
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 2
    ๐Ÿ‡ณ๐Ÿ‡ฌ 3
    ๐Ÿ‡ง๐Ÿ‡ฆ 1
    ๐Ÿ‡ง๐Ÿ‡ท 2
    ๐Ÿ‡ช๐Ÿ‡ฌ 1
    ๐Ÿฟ๏ธ 8
    ๐Ÿ™Œ 7
    ๐Ÿ˜‰ 4
    ๐Ÿฆœ 7
    ๐Ÿฅฐ 3
    ๐Ÿณ๏ธโ€๐ŸŒˆ 4
    india parrot 3
    ๐Ÿ‡ฎ๐Ÿ‡น 1
    australia parrot 1
    ๐Ÿ‡ฑ๐Ÿ‡ฐ 1
    ๐Ÿ‡ฏ๐Ÿ‡ต 3
    ๐Ÿ‡ญ๐Ÿ‡บ 1
    prisma rainbow 57
    ๐Ÿ‡ฐ๐Ÿ‡ท 18
    ๐Ÿ’ก 7
    ๐Ÿ“ฃ 1
    ๐Ÿš€ 5
    ๐ŸŒถ๏ธ 3
    ๐ŸŽ‰ 4
    ๐Ÿ‡ณ๐Ÿ‡ด 2
    ๐Ÿ‡ป๐Ÿ‡ณ 2
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 2
    ๐Ÿ‡ฒ๐Ÿ‡พ 1
    ๐Ÿ‡ฐ๐Ÿ‡ช 3
  • a

    Alex Ruheni

    11/30/2021, 3:23 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma 3.6.0 prisma rainbow ๐Ÿ” Full-text index support in MySQL and MongoDB (Preview) This release introduces support for full-text indexes in the
    db pull+
    ,
    db push
    and
    migrate
    commands for MySQL and MongoDB databases as a Preview feature. For now, we do not enable the full-text search commands in the Prisma Client. They will be implemented separately. You can follow the progress in the MongoDB and MySQL issues. Add the Preview featureย 
    fullTextIndex
    ย to the Prisma schema, after which theย 
    @@fulltext
    ย attribute is allowed in the Prisma schema:
    Copy code
    generator js {
      provider        = "prisma-client-js"
      previewFeatures = ["fullTextIndex"]
    }
    
    model A {
      id      Int    @id
      title   String @db.VarChar(255)
      content String @db.Text
      
      @@fulltext([title, content])
    }
    Note: It is mandatory to doย 
    db pull
    ย with the Preview feature enabled before using Prisma Migrate on existing MySQL databases, so the index types can be converted and will not get overwritten in the next migration. For more details checkout our documentation. ๐Ÿ’ฅ Hash index support for PostgreSQL (Preview) With theย 
    extendedIndexes
    ย Preview feature, it is now possible to useย 
    Hash
    ย instead of the defaultย 
    BTree
    ย as the index algorithm on PostgreSQL databases. A hash index can be much faster for inserts, but it only supports equals operation in the database. Hereโ€™s an example of using a hash index:
    Copy code
    generator js {
      provider        = "prisma-client-js"
      previewFeatures = ["extendedIndexes"]
    }
    
    model A {
      id    Int @id
      value Int  
      
      @@index([value], type: Hash)
    }
    For more details checkout our documentation. ๐Ÿš€ VS Code extension now uses a Wasm module Starting with
    3.6.0
    , the language server and the VS Code extension use logic compiled to WebAssembly and distributed through npm. If you have any feedback, please leave an issue in the `prisma/language-tools` repository. โœจ
    Bytes
    can now be filtered with
    in
    and
    notIn
    You can now use
    in
    and
    notIn
    operations on the
    Bytes
    type:
    Copy code
    const audioTracks = raws.map(raw => {
      return Buffer.from(raw)
    })
    
    const result = await prisma.audio.find({
      where: {
        track: 
          in: audioTracks
        }
      }
    })
    ๐Ÿ‘€
    Json
    fields now accept read-only types
    You can now pass immutable values into
    Json
    fields. In the following example,
    audit
    is a
    Json
    field that accepts a read-only array:
    Copy code
    const trail = [
      { event: "signup" },
      { event: "subscribe" },
      { event: "invite friend" }
    ] as const
    
    await prisma.user.create({
      data: {
        audit: trail
      }
    })
    Learn more in this issue. ๐Ÿ“š 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 This week, @nikolasburk and @Daniel Norman will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    on Wednesday at 5 pm Berlin | 8 am San Francisco
    ๐Ÿ‡ฏ๐Ÿ‡ต 5
    ๐Ÿ“ฝ๏ธ 3
    prisma cool 7
    ๐Ÿคฉ 6
    ๐Ÿ™Œ๐Ÿฝ 1
    ๐ŸŽ‰ 4
    ๐Ÿ‡ฌ๐Ÿ‡ท 2
    ๐Ÿ 1
    ๐Ÿ‡ช๐Ÿ‡น 2
    768px webassembly logosvg 3
    ๐Ÿ‡ป๐Ÿ‡ช 2
    ๐Ÿ‡ฎ๐Ÿ‡ณ 7
    ๐Ÿ‡ฐ๐Ÿ‡ช 4
    ๐Ÿ‡ฐ๐Ÿ‡ท 10
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 2
    ๐Ÿ‡ณ๐Ÿ‡ด 1
    ๐Ÿ‡จ๐Ÿ‡ณ 2
    ๐Ÿ‡ง๐Ÿ‡ป 2
    prisma rainbow 47
    โœจ 12
    ๐Ÿ’š 39
    ๐Ÿ‡ต๐Ÿ‡ฑ 9
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 8
    ๐Ÿšข 4
    ๐Ÿ™Œ 23
    ๐Ÿš€ 18
    fast parrot 28
    ๐Ÿ” 3
    germany parrot 7
    ๐Ÿ’ฏ 10
    typescript 7
    ๐Ÿ‘๐Ÿฝ 1
    ๐Ÿ‡ฟ๐Ÿ‡ผ 6
    india parrot 7
    ๐ŸŽƒ 6
    ๐Ÿ˜Ž 4
    ๐Ÿ‡ฎ๐Ÿ‡น 4
    ๐Ÿ™‚ 2
    ๐Ÿ‡ฌ๐Ÿ‡ช 2
    ๐Ÿ‡ฑ๐Ÿ‡ฐ 3
    ๐ŸŽฌ 2
    ๐Ÿ’ฅ 4
    ๐Ÿฆœ 6
    catjam 5
    ๐Ÿ‡ต๐Ÿ‡ฐ 4
    ๐Ÿ‘ 3
    ๐Ÿ‡ณ๐Ÿ‡ฌ 5
    ๐Ÿ‡ฒ๐Ÿ‡พ 2
    ๐Ÿ‡ง๐Ÿ‡ด 4
    ๐Ÿ‡จ๐Ÿ‡ด 3
    ๐Ÿ‡ป๐Ÿ‡ณ 2
  • a

    Alex Ruheni

    12/21/2021, 3:44 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    3.7.0
    prisma rainbow ๐Ÿงช Referential actions support for MongoDB In
    3.7.0
    , weโ€™ve added MongoDB support for
    onDelete
    and
    onUpdate
    to specify how you want to handle changes to relationships. MongoDB does not support referential actions out of the box, but we can emulate this feature inside the Prisma Query Engine. Given the following schema:
    Copy code
    model User {
       id    String @id @default(dbgenerated()) @map("_id") @db.ObjectId
       posts Post[]
       name  String
     }
    
     model Post {
       id     String @id @default(dbgenerated()) @map("_id") @db.ObjectId
       author User   @relation(fields: [userId], references: [id], *onDelete: Cascade*)
       title  String
       userId String @db.ObjectId
     }
    By specifying
    onDelete: Cascade
    , Prisma will also delete posts whenever the author of the posts is deleted. Thereโ€™s a lot more to referential actions than cascading deletes. Head over to our documentation to learn more. Prisma exposes features and workflows that database vendors donโ€™t offer. ๐Ÿ” Prevent referential cycles on MongoDB As part of getting
    onDelete
    and
    onUpdate
    ready for MongoDB, weโ€™ve tightened up our validation rules to prevent a potential stack overflow if you create a loop with referential actions. This change may cause some existing schemas using the
    mongodb
    preview feature to become invalid, where your schema now errors out with the following message:
    Copy code
    Error parsing attribute "@relation": Reference causes a cycle.
    If you run into this, you can learn how to resolve it with this documentation. If youโ€™re still stuck, feel free to open a discussion, and weโ€™ll lend a hand! โš ๏ธ Deprecating undocumented usage of
    type
    in Prisma Schema
    With Prisma
    3.7.0
    release, the VS Code extension (and other IDEs using our language server implementation) will start to show a warning when detecting unsupported usage of the
    type
    keyword. We plan to remove that functionality entirely with the next major release of Prisma. If you depend on similar functionality for type aliasing, please comment on the issue. Hereโ€™s an example of a string alias:
    Copy code
    type MyId = String @id @default(dbgenerated(new_uuid()))
    
    model A {
      id MyId
    }
    ๐Ÿ”’ Prisma Studio improvements โ€ข Due to how Prisma Studio executes Prisma Client queries, it was possible to execute arbitrary code on Studioโ€™s local server. This has since been patched. โ€ข Issues with viewing and updating models with
    BigInt
    fields are also resolved. ๐Ÿ“š 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 it 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 today for the โ€œWhatโ€™s new in Prismaโ€ livestream This week, @nikolasburk and @Alex Ruheni R. will discuss the latest release and other news from the Prisma ecosystem in a livestream on YouTube today at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿ‘ 14
    ๐Ÿ™Œ๐Ÿฝ 1
    ๐Ÿ™Œ 18
    ๐Ÿฅฐ 12
    fast parrot 25
    ๐ŸŒŸ 9
    ๐Ÿ‡ต๐Ÿ‡ฑ 6
    ๐Ÿ‡ธ๐Ÿ‡ฆ 1
    prisma rainbow 42
    ๐Ÿ’š 16
    ๐Ÿ‘€ 11
    ๐Ÿ‘ 8
    โœจ 9
    ๐ŸŽ„ 6
    ๐Ÿคญ 3
    ๐Ÿ‘๐Ÿฝ 1
    ๐ŸŽ‰ 3
    ๐Ÿ‡ฎ๐Ÿ‡น 1
    ๐Ÿณ๏ธโ€๐ŸŒˆ 3
    ๐Ÿ‡ฎ๐Ÿ‡ณ 7
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    ๐Ÿ‡ฟ๐Ÿ‡ฆ 2
    ๐Ÿ‡ฉ๐Ÿ‡ฐ 1
    ๐Ÿ‡ง๐Ÿ‡ท 1
    ๐Ÿ‡ฐ๐Ÿ‡ท 7
    ๐Ÿ‡ฏ๐Ÿ‡ต 3
    ๐Ÿ‡ฆ๐Ÿ‡ฑ 1
    ๐Ÿ‡ฒ๐Ÿ‡ฐ 1
    ๐Ÿ‡บ๐Ÿ‡ฆ 1
    prisma cool 18
    catjam 8
    ๐Ÿš€ 3
    ๐ŸŽฅ 3
    ๐Ÿ‡ฟ๐Ÿ‡ผ 2
    ๐Ÿ‡ฝ๐Ÿ‡ฐ 1
    ๐Ÿ”ฅ 27
    ๐Ÿ˜ฎ 11
    ๐Ÿ‡ป๐Ÿ‡ช 4
    ๐Ÿ‡ฏ๐Ÿ‡ด 2
    ๐Ÿ‡ซ๐Ÿ‡ท 1
    ๐Ÿ˜Ž 8
    ๐Ÿ‘๐Ÿฝ 1
    ๐ŸŽค 3
    prisma xmas 2
    ๐Ÿ‡ง๐Ÿ‡ด 2
    ๐Ÿ‡น๐Ÿ‡ฟ 1
  • a

    Alex Ruheni

    01/11/2022, 3:28 PM
    Hey <!everyone> โœŒ๏ธ prisma cool Weโ€™re back from the holidays with a special treat for you. We just released Prisma
    3.8.0
    prisma rainbow ๐Ÿ” Full-text search support for MySQL is now in Preview Prisma now supports full-text search in MySQL. You can enable full-text support by adding the
    fullTextIndex
    and
    fullTextSearch
    Preview flags in your Prisma schema and defining
    @@fulltext()
    index on fields youโ€™d like to use full-text search on.
    Copy code
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["fullTextIndex", "fullTextSearch"]
    }
    
    datasource db {
      provider = "mysql"
      url      = env("DATABASE_URL")
    }
    
    model Post {
      id     Int    @id @default(autoincrement())
      title  String @unique
      @@fulltext([title])
    }
    Run
    prisma db push
    or
    prisma migrate dev
    to update your database schema. Prisma Client will also be re-generated, enabling you to use full-text search in your application.
    Copy code
    // search for titles that contain cat, but not fox
    await prisma.post.findMany({
      where: {
        title: {
          search: "+cat -fox",
        },
      },
    })
    Learn more in our documentation. ๐Ÿšง
    dataProxy
    and
    interactiveTransactions
    are now mutually exclusive
    Before Prisma
    3.8.0
    , Prisma queries would fail whenever the Data Proxy and interactive transactions Preview features were used together. The interactiveTransactions and dataProxy Preview flags cannot be used together in this release. Generating the Prisma Client when both Preview features are enabled will throw an error. ๐Ÿ”ง Fixed support for
    push
    when adding an element to an array in MongoDB
    Prisma
    3.8.0
    fixed
    push
    support for `ObjectId`s on MongoDB. Given the following schema:
    Copy code
    model Course {
      id          String   @id @default(dbgenerated()) @map("_id") @db.ObjectId
      title       String
      students    String[] @db.Array(ObjectId)
    }
    You can now run the following query:
    Copy code
    // Add a new student to the course
    await prisma.course.update({
      where: {
        id: 1
      },
      data: {
        students: {
          push: new ObjectID("...")
        }
      }
    })
    ๐Ÿ“š 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 it 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 This week, I will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    on Thursday at 5 pm Berlin | 8 am San Francisco
    ๐Ÿ™Œ๐Ÿผ 1
    ๐Ÿ™Œ๐Ÿฝ 1
    prisma cool 21
    ๐Ÿณ๏ธโ€๐ŸŒˆ 7
    prisma rainbow 21
    prisma xmas 3
    ๐Ÿ‡ต๐Ÿ‡ฑ 10
    ๐ŸŽ‰ 16
    fast parrot 22
    github icon 10
    ๐Ÿ‡ฌ๐Ÿ‡ง 1
    ๐Ÿ™Œ๐Ÿฟ 1
    ๐Ÿ‡บ๐Ÿ‡ฌ 2
    ๐Ÿ‡ป๐Ÿ‡ช 3
    ๐Ÿ‡ฐ๐Ÿ‡ช 3
    ๐Ÿ˜Ž 5
    ๐Ÿ‡ณ๐Ÿ‡ฑ 4
    ๐Ÿ“ฃ 4
    ๐Ÿฅฐ 10
    prisma green 11
    โœจ 5
    ๐Ÿ‡ต๐Ÿ‡ช 1
    ๐Ÿ‡ฟ๐Ÿ‡ผ 1
    ๐Ÿ‡ฒ๐Ÿ‡ป 1
    ๐Ÿ‡ฌ๐Ÿ‡ช 1
    southafrica parrot 1
    ๐Ÿ‡ฏ๐Ÿ‡ฒ 1
    ๐Ÿ‡ต๐Ÿ‡ฐ 3
    ๐Ÿ™‚ 3
    ๐Ÿ”ฅ 8
    ๐ŸŒถ๏ธ 2
    ๐Ÿ‡ท๐Ÿ‡ผ 1
    ๐ŸŽฌ 3
    ๐Ÿ’ฏ 8
    ๐Ÿ‡ฉ๐Ÿ‡ฏ 1
    ๐Ÿ‡ง๐Ÿ‡ด 2
    ๐Ÿ‡ฎ๐Ÿ‡น 1
    ๐Ÿ‡ณ๐Ÿ‡ด 1
    ๐Ÿ‡ซ๐Ÿ‡ท 4
    ๐Ÿ‡ณ๐Ÿ‡ฌ 5
    ๐Ÿ‡ฎ๐Ÿ‡ณ 7
    ๐Ÿ‡ธ๐Ÿ‡ฆ 1
    catjam 6
    ๐Ÿคฉ 4
    ๐Ÿš€ 9
    ๐Ÿ‡ฐ๐Ÿ‡ท 11
    ๐Ÿ™Œ 67
    ๐Ÿ‡ฏ๐Ÿ‡ต 1
    ๐Ÿ‡ช๐Ÿ‡น 1
    ๐Ÿ‡ฟ๐Ÿ‡ฒ 1
  • a

    Alex Ruheni

    02/01/2022, 3:42 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    3.9.0
    prisma rainbow ๐Ÿ› ๏ธ Prisma Migrate improvements to troubleshoot migrations Last year, we released Prisma Migrate for General Availability. Since then, weโ€™ve gotten feedback from you to understand the challenges you experience building, testing, and deploying migrations. Weโ€™re thrilled to announce that weโ€™re introducing new CLI commands to improve the experience troubleshooting migrations:
    prisma migrate diff
    and
    prisma db execute
    . The
    prisma migrate diff
    command creates a diff of your database schema, Prisma schema file, or the migration history. As a companion to the
    prisma migrate diff
    , we also built
    prisma db execute
    to execute SQL scripts against a database. This creates the possibility of building many new workflows such as forward and backward migrations with automation tooling. Weโ€™re looking forward to learning how they work for you and how we could make them better. You can learn about them here and give us feedback on the issue. ๐Ÿฆฆ Preview support for CockroachDB We are excited to announce Preview support for CockroachDB. CockroachDB support in Prisma is the product of collaboration with the Cockroach Labs team, and with this release, you can use Prisma in existing CockroachDB projects with introspection. To learn more, check out theย release blog postย and try it out with theย getting started guide. ๐ŸŒŸ Raw query support for MongoDB Prisma version
    3.9.0
    introduces raw queries to the MongoDB (Preview) connector. Raw queries help writing queries that Prisma doesnโ€™t support yet, such as:
    Copy code
    // To find zero or more documents matching a filter
    const result = await prisma.user.findRaw({
      filter: { age: { $gt: 25 } },
      options: { projection: { _id: false } },
    })
    
    // To perform aggregation operations on a collection
    await prisma.user.aggregateRaw({
      pipeline: [
        { $match: { status: 'registered' } },
        { $group: { _id: '$country', total: { $sum: 1 } } },
      ],
    })
    
    // To run a command against the database
    await prisma.$runCommandRaw({
      aggregate: 'User',
      pipeline: [
        { $match: { name: 'Bob' } },
        { $project: { email: true, _id: false } },
      ],
      explain: false,
    })
    Learn more about Prismaโ€™s new raw query API and how you can use it in our documentation. โžฟ Concurrency issues with Interactive Transactions Prisma version
    3.9.0
    resolved issues experienced around timeouts and rollbacks when there were concurrent reads and writes. If you experienced timeouts or your interactive transactions werenโ€™t working quite as expected, nowโ€™s the time to make the upgrade and give it another go. Learn more about Interactive Transactions in our documentation. ๐Ÿ“š 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 it 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 This week, @nikolasburk and @Daniel Norman will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿณ๏ธโ€๐ŸŒˆ 17
    ๐ŸŒฆ๏ธ 2
    prisma cool 65
    ๐Ÿ‘ 34
    ๐Ÿš€ 16
    ๐ŸŒถ๏ธ 7
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 5
    ๐ŸŽ‰ 10
    ๐Ÿ’ฏ 9
    โค๏ธ 8
    ๐Ÿ˜Ž 3
    ๐Ÿ˜› 3
    ๐Ÿ•บ๐Ÿฝ 1
    fast parrot 30
    ๐ŸŽค 9
    ๐Ÿ‡ฟ๐Ÿ‡ผ 6
    ๐Ÿ“ฝ๏ธ 4
    ๐Ÿ‡จ๐Ÿ‡ด 5
    ๐Ÿ‡บ๐Ÿ‡ธ 4
    โœ… 4
    ๐Ÿ’š 5
    ๐Ÿ‘๐Ÿฝ 1
    ๐Ÿ‘๐Ÿพ 1
    ๐Ÿ‘๐Ÿฟ 1
    ๐Ÿ‡ณ๐Ÿ‡ด 5
    ๐Ÿ™Œ 4
    ๐Ÿ‡ฉ๐Ÿ‡ฐ 2
    ๐Ÿ‡ต๐Ÿ‡ฐ 2
    ๐Ÿ‡ป๐Ÿ‡ณ 2
    ๐Ÿ‡ฉ๐Ÿ‡ฏ 2
    ๐Ÿ‡ต๐Ÿ‡ฑ 17
    ๐Ÿฆœ 26
    ๐Ÿ‘๐Ÿผ 2
    ๐Ÿ‡ฌ๐Ÿ‡ท 7
    catjam 6
    ๐Ÿ’ฅ 6
    ๐Ÿ› 4
    โœจ 8
    ๐Ÿ˜ƒ 3
    prisma rainbow 11
    prisma green 7
    ๐Ÿคฉ 7
    ๐Ÿ‡ฐ๐Ÿ‡ช 7
    ๐Ÿ‡ฎ๐Ÿ‡ณ 9
    ๐Ÿ‡ฒ๐Ÿ‡ป 2
    ๐Ÿ‘๐Ÿป 2
    ๐Ÿ•บ 3
    ๐Ÿ‡ท๐Ÿ‡บ 2
    ๐Ÿชณ 4
    ๐Ÿ‡ช๐Ÿ‡ธ 3
    ๐Ÿ‡ฐ๐Ÿ‡ท 9
    ๐Ÿ‡ท๐Ÿ‡ด 1
    ๐Ÿ‡ช๐Ÿ‡น 2
    ๐Ÿ‡ธ๐Ÿ‡ฆ 1
  • a

    Alex Ruheni

    02/22/2022, 6:49 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    3.10.0
    prisma rainbow We are working towards a stable release of MongoDB and are shipping lots of improvements. All the major features and breaking changes in this release therefore only apply to the MongoDB connector. Take a closer look if you are using the Preview of MongoDB as some of the changes are breaking. ๐Ÿ“„ Embedded documents support is now in preview Weโ€™re super excited to announce that Prisma version
    3.10.0
    supports reading and modifying embedded documents. Embedded documents will provide access to a new
    type
    keyword in your Prisma schema that you can use to define composite types.
    Copy code
    datasource db {
      provider = "mongodb"
      url      = env("DATABASE_URL")
    }
    
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["mongoDb"]
    }
    
    model Product {
      id     String  @id @default(auto()) @map("_id") @db.ObjectId
      name   String
      photos Photo[]
    }
    
    type Photo {
      height Int
      width  Int
      url    String
    }
    Given the schema above, you can now read and write to the embedded
    photos
    array:
    Copy code
    // Create a new product with an embedded list of photos
    const product = await prisma.product.create({
      data: {
        name: "Forest Runners",
        price: 59.99,
        // Create an embedded list of photos in the product
        photos: [
          { height: 100, width: 200, url: "1.jpg" },
          { height: 300, width: 400, url: "2.jpg" },
        ],
      },
    })
    You can read further in our documentation. Feel free to open an issue if you run into anything, and weโ€™ll give you a hand! ๐Ÿ” Introspection of embedded documents is now enabled by default We added Preview support for embedded documents in version
    3.4.0
    and are now activating it for all users. Running
    prisma db pull
    against your MongoDB database will generate
    type
    definitions within your Prisma schema. When introspecting your database, you can switch off the depth with
    -composite-type-depth=0
    , or limit it with, for example,
    --composite-type-depth=2
    . Feel free to drop your feedback on the feature on GitHub. ๐Ÿšจ
    @default(dbgenerated())
    is now replaced with
    @default(auto())
    The original purpose of
    dbgenerated
    is to support SQL expressions Prisma doesnโ€™t understand yet. However, MongoDB doesnโ€™t have a concept of default value expressions like SQL does. We took this opportunity to simplify handling the default values in MongoDB. ๐Ÿšจ Many-to-Many relations now require a
    references
    argument
    Prisma version
    3.10.0
    now enforces all arguments in a MongoDB many-to-many relation. This means a
    @relation
    attribute must define
    fields
    and
    references
    arguments on both sides. The
    fields
    argument must point to a scalar field in the same model, and this scalar field must be an array. The
    references
    arguments must point to a scalar field in the opposite model, and it must be a singular type of the same base type as the referencing array on the other side.
    Copy code
    model Post {
      id           String   @id @map("_id") @default(auto()) @db.ObjectId
      category_ids String[] @db.ObjectId
      categories   Category[]      @relation(fields: [category_ids], references: [id])
    }
        
    model Category {
      id       String   @id @map("_id") @default(auto()) @db.ObjectId
      post_ids String[] @db.ObjectId
      posts    Post[] @relation(fields: [post_ids], references: [id])
    }
    ๐Ÿšจ
    db.Array(ObjectId)
    is now updated to
    @db.ObjectId
    The original purpose of
    dbgenerated
    is to support SQL expressions Prisma doesnโ€™t understand yet. However, MongoDB doesnโ€™t have a concept of default value expressions like SQL does. We took this opportunity to simplify how we handle the default values in MongoDB. ๐Ÿ“š 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 it 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 This week, @Austin and I will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿ‡ง๐Ÿ‡ด 1
    prisma rainbow 34
    ๐Ÿ‡ง๐Ÿ‡ท 6
    ๐Ÿ’ฅ 4
    catjam 6
    ๐Ÿ•บ๐Ÿฝ 1
    ๐ŸŒถ๏ธ 2
    ๐Ÿคฉ 5
    ๐Ÿš€ 29
    ๐ŸŽค 7
    ๐ŸŽ‰ 19
    โœจ 3
    ๐Ÿ”ฅ 6
    ๐Ÿฆœ 4
    ๐Ÿ“ฃ 4
    prisma cool 6
    ๐Ÿ‡ช๐Ÿ‡บ 2
    ๐Ÿ‡ฎ๐Ÿ‡ณ 5
    ๐Ÿ‡ณ๐Ÿ‡ฑ 2
    ๐Ÿ‡ฐ๐Ÿ‡ท 9
    ๐Ÿ•บ 2
    ๐Ÿ‡ต๐Ÿ‡ฑ 10
    mongodb 15
    ๐Ÿ‡ท๐Ÿ‡ด 8
    prisma green 21
    ๐Ÿ™Œ๐Ÿฝ 1
    fast parrot 20
    โญ 3
    ๐Ÿ˜Ž 2
    ๐Ÿณ๏ธโ€๐ŸŒˆ 2
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 2
    ๐Ÿ‡ณ๐Ÿ‡ด 2
    ๐Ÿ‘ 1
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 3
    ๐Ÿ‡ฉ๐Ÿ‡ช 3
    ๐Ÿ‡ฎ๐Ÿ‡ถ 2
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    ๐Ÿ‡ช๐Ÿ‡ธ 1
    ๐Ÿ‡จ๐Ÿ‡ด 1
    โค๏ธ 7
    ๐Ÿ‡ง๐Ÿ‡ช 2
    prisma yellow 2
    ๐Ÿ‡ณ๐Ÿ‡ฌ 4
    ๐Ÿ‡ฟ๐Ÿ‡ฆ 2
    ๐Ÿ‡ฏ๐Ÿ‡ต 4
    typescript 1
    ๐Ÿ‡บ๐Ÿ‡ฟ 1
    ๐Ÿ™Œ 6
    ๐Ÿ‡ธ๐Ÿ‡ฆ 1
    ๐Ÿ‡ช๐Ÿ‡น 1
    ๐Ÿ‡ช๐Ÿ‡ฌ 1
    ๐Ÿ‡ฉ๐Ÿ‡ฏ 2
  • a

    Alex Ruheni

    03/15/2022, 8:21 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    3.11.0
    prisma rainbow ๐Ÿ“ฆ Experimental support for embedded document filters (MongoDB) In the previous release, we added embedded document support for creates, updates, and deletes. In version
    3.11.0
    , weโ€™re adding experimental support for filtering embedded documents. Given the following schema:
    Copy code
    model Product {
      id     String  @id @default(auto()) @map("_id") @db.ObjectId
      photos Photo[]
    }
    
    model Order {
      id              String   @id @default(auto()) @map("_id") @db.ObjectId
      shippingAddress Address
      billingAddress  Address? /// optionally embedded document
    }
    
    type Photo {
      height Int
      width  Int
      url    String
    }
    
    type Address {
      street String
      city   String
      zip    String
    }
    You can now add filters within an embedded document:
    Copy code
    // find all orders with the same shipping address
    const orders = await prisma.order.findMany({
      where: {
        shipping: {
          equals: {
            street: "555 Candy Cane Lane",
            city: "Wonderland",
            zip: "52337",
          },  
        },
      },
    })
    You can also add a filter on a โ€œcontains manyโ€ relationship:
    Copy code
    // find all products that don't have photos
    const product = prisma.product.findMany({
      where: {
        photos: {
          isEmpty: true
        }
      },
    })
    This scratches the surface of whatโ€™s possible. For a complete list of available operations, have a look at our documentation. Please share your feedback in this issue. ๐Ÿ—ƒ๏ธ Ordering by embedded documents is in Preview (MongoDB) In addition to filtering, version
    3.11.0
    now supports sorting by by an embedded document. Using the example schema above, you can sort orders by their zip code:
    Copy code
    // sort orders by zip code in ascending order
    const orders = await prisma.order.findMany({
      orderBy: {
        shippingAddress: {
          zip: "asc",
        },
      },
    })
    Learn more about this feature in our documentation, and donโ€™t hesitate to reach out in this issue. ๐Ÿชต MongoDB query logging support In this release, weโ€™ve added the ability to log MongoDB queries. You can enable query logging in the
    PrismaClient
    constructor:
    Copy code
    const prisma = new PrismaClient({
      log: [
        {
          emit: 'event',
          level: 'query',
        },
      ]
    })
    
    prisma.$on('query', (e) => console.log(e.query))
    The logs output by Prisma have the same format as the
    mongosh
    console, so you can pipe the queries from your logs directly into your shell. ๐Ÿ”’ MongoDB introspection update Weโ€™ve updated the type inference behavior for MongoDB on introspection. On introspection, Prisma samples the data of a field to find an appropriate type. In the past, Prisma picked the type used most often for fields with data with multiple types. However, this could cause problems when retrieving mixed data during runtime and throwing exceptions, such as Prisma Studio or in Prisma Client queries. From
    3.11.0
    , Prisma defaults to the
    Json
    type to all fields with mixed data types. Additionally, Prisma still shows a warning on the console and adds a comment to the introspected Prisma schema so it is clear where such cases occur and that you can do something to fix them. ๐Ÿš€ Prisma Client logger revamp In
    3.11.0
    , weโ€™ve rewritten our internal logger to reduce lock contention and enable future features like tracing. If youโ€™re running into query performance issues, please open an issue. ๐Ÿฆฆ CockroachDB now supports migrations (Preview) Weโ€™re excited to announce Preview support for migrations for CockroachDB. Give it a try and let us know what you think in this issue. ๐Ÿ” Detecting state of a diff with
    migrate diff
    using exit code
    Prisma version
    3.11.0
    includes a new
    --exit-code
    flag to the
    migrate diff
    to detect the state of a diff. Please read about it in the reference documentation. ๐Ÿ“š 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 it 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 This week, @Austin and I will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 9 am San Francisco.
    ๐Ÿ‡ธ๐Ÿ‡ช 1
    ๐Ÿ‡ต๐Ÿ‡ฑ 9
    ๐Ÿณ๏ธโ€๐ŸŒˆ 5
    ๐Ÿ˜Ž 18
    ๐Ÿ“ฝ๏ธ 3
    ๐Ÿ‡ฌ๐Ÿ‡ท 3
    ๐Ÿ‡บ๐Ÿ‡ฟ 3
    ๐ŸŽค 2
    โœจ 2
    ๐ŸŽ‰ 3
    ๐Ÿ•บ 2
    ๐Ÿ‡ฟ๐Ÿ‡ผ 6
    prisma cool 30
    ๐Ÿ•บ๐Ÿฝ 1
    ๐ŸŒถ๏ธ 7
    ๐Ÿ’ฅ 2
    ๐Ÿ“ฃ 3
    ๐Ÿ‡ฐ๐Ÿ‡ท 7
    ๐Ÿ’ฏ 4
    ๐Ÿ‡ณ๐Ÿ‡ด 1
    ๐Ÿ–๏ธ 2
    ๐Ÿ‡จ๐Ÿ‡ฟ 1
    ๐Ÿ‡บ๐Ÿ‡ธ 2
    ๐Ÿ‡ท๐Ÿ‡บ 2
    ๐Ÿ‡ต๐Ÿ‡ฐ 1
    ๐Ÿš€ 18
    prisma rainbow 21
    mongodb 7
    catjam 7
    ๐Ÿฆœ 5
    โญ 3
    โค๏ธ 8
    ๐Ÿค– 1
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    ๐Ÿ‡ฏ๐Ÿ‡ต 2
    ๐Ÿ‡ฒ๐Ÿ‡จ 1
    ๐Ÿ‡บ๐Ÿ‡ฆ 2
    ๐Ÿ‡ฒ๐Ÿ‡ฆ 1
    ๐Ÿ‡ฒ๐Ÿ‡ฌ 1
    fast parrot 28
    prisma green 11
    ๐Ÿคฉ 2
    ๐Ÿ‡ท๐Ÿ‡ด 2
    ๐Ÿ‡ฎ๐Ÿ‡ณ 6
    ๐Ÿ‡ฉ๐Ÿ‡ฏ 1
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 1
    ๐Ÿ‡ฉ๐Ÿ‡ฐ 1
    ๐Ÿ‡จ๐Ÿ‡ด 1
    ๐Ÿ‡ง๐Ÿ‡ช 1
    ๐Ÿ‡ฐ๐Ÿ‡ช 2
  • m

    Matt Mueller (Prisma Client PM)

    03/24/2022, 8:39 PM
    Hey <!everyone> ๐Ÿ‘‹ Today, we are issuing the
    3.11.1
    patch release. It's a big one for our MongoDB community ๐ŸŒฟ prisma rainbow ๐Ÿ“Œ All of the changes below are specific to the MongoDB Preview. This will be our last release before we announce MongoDB support as production-ready. Please, please, please give these changes a try and tell us know what you think in this issue or jump on a quick call with us. ๐Ÿป โ— Breaking: Filters no longer return
    undefined
    fields by default
    In preparation for MongoDB General Availability, we've changed what data is returned when filtering MongoDB documents on
    undefined
    fields. The new rule is that
    undefined
    fields are excluded by default unless explicitly filtered for. This allows you to query for undefined and null values separately. Let's take a look at a concrete example. Given the following Prisma schema:
    Copy code
    model Address {
        id     Int    @id @map("_id")
        city   String
        street String? // Note that street is optional
    }
    For Mongo, optional fields can either be
    null
    or
    undefined
    (absent). The following documents are all valid for the schema above:
    Copy code
    { "_id": 1, "city": "San Fransisco", "street": "Market st." }
    { "_id": 2, "city": "Seattle", "street": null }
    { "_id": 3, "city": "Chicago" }
    Prior to
    3.11.1
    , if you queried for
    where: { street: null }
    , you'd get
    _id: 2
    and
    _id: 3
    . In
    3.11.1
    , you'll only get
    _id: 2
    . The ability to also query for the missing fields has also been added. For details, refer to the new
    isSet
    below to learn more. ๐Ÿช‘ New
    isSet
    filter operation
    To compensate for missing fields on documents no longer being returned by the filters above, weโ€™ve added a new
    isSet: bool
    filter. This filter can be used to include fields that are
    undefined
    on documents. Using the example above, to include the
    undefined
    fields, you can use an `OR`:
    Copy code
    await prisma.address.findMany({
      where: {
        OR: [
          { street: { isSet: false } },
          { street: null }
        ]
      }
    })
    The
    isSet
    operation has been added to all scalar and embedded fields that are optional. ๐Ÿšฏ New
    unset
    operation
    In
    3.11.1
    , you can also remove a field with the
    unset
    operation. Using the example above, let's write a query to remove the street field:
    Copy code
    await prisma.address.update({
      where: {
        id: 10,
      },
      data: {
        street: {
          unset: true,
        },
      },
    })
    This effectively sets the
    street
    field to
    undefined
    in the database. ๐Ÿ™ New
    updateMany
    embedded operation
    We now support updating embedded documents that match specific criteria. For example, given the following schema:
    Copy code
    model Product {
      id          Int  @id @map("_id")
      name        String  @unique
      photos      Photo[]
    }
    
    type Photo {
      height Int    @default(200)
      width  Int    @default(100)
      url    String
    }
    Let's update the photo with a
    url
    of
    1.jpg
    to `2.png`:
    Copy code
    const product = prisma.product.update({
      where: {
        id: 10,
      },
      data: {
        photos: {
          updateMany: {
            where: {
              url: '1.jpg',
            },
            data: {
              url: '2.png',
            },
          },
        },
      },
    })
    โ›” New
    deleteMany
    embedded operation
    Similar to
    updateMany
    , you can also remove embeds that match specific criteria. Using the Prisma Schema above, let's delete all photos with a
    height
    of 100:
    Copy code
    const product = prisma.product.update({
      where: {
        id: 10,
      },
      data: {
        photos: {
          deleteMany: {
            where: {
              height: 100,
            },
          },
        },
      },
    })
    ๐Ÿ“š 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 it 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.
    ๐Ÿ‘Œ๐Ÿฟ 1
    3๏ธโƒฃ 8
    ๐Ÿš€ 21
    ๐ŸŒฒ 6
    ๐Ÿคซ 3
    ๐Ÿ‡บ๐Ÿ‡ฟ 3
    ๐Ÿ† 5
    america parrot 6
    gopher love 3
    ๐Ÿ’ฏ 5
    ๐Ÿ’…๐Ÿผ 1
    ๐Ÿ‡บ๐Ÿ‡ธ 1
    ๐Ÿ‘Œ 30
    ๐Ÿ‡ฌ๐Ÿ‡ท 5
    ๐Ÿ‡จ๐Ÿ‡ฟ 6
    ๐Ÿ‡ณ๐Ÿ‡ฟ 5
    ๐Ÿ‘Ž 4
    ๐Ÿ‡ง๐Ÿ‡ท 3
    ๐Ÿณ๏ธโ€๐ŸŒˆ 3
    ๐Ÿ‡ฟ๐Ÿ‡ผ 6
    prisma cool 9
    ๐Ÿ‡ณ๐Ÿ‡ฌ 3
    prisma xmas 1
    ๐Ÿ˜ป 4
    mongodb 3
    prisma rainbow 5
    ๐Ÿ‡ฎ๐Ÿ‡ณ 3
    ๐Ÿ‡ฒ๐Ÿ‡ฌ 1
    ๐Ÿ‡จ๐Ÿ‡ด 1
    ๐Ÿ‡จ๐Ÿ‡ฎ 1
    ๐Ÿ‘ญ 12
    ๐ŸŽ‰ 27
    ๐Ÿ‡ฟ๐Ÿ‡ฆ 7
    catjam 17
    pakistan parrot 7
    ๐Ÿคท 4
    ๐Ÿ‘ 5
    ๐Ÿ‘Œ๐Ÿผ 2
    ๐Ÿ’ซ 5
    party postgres 5
    ๐Ÿ˜ 5
    ๐Ÿฅฐ 3
    ๐Ÿ’… 2
    ๐Ÿ‡ณ๐Ÿ‡ด 1
    ๐Ÿ‡ท๐Ÿ‡ด 1
    ๐Ÿ‡ณ๐Ÿ‡ฑ 1
    ๐Ÿ‘ญ๐Ÿฝ 1
    ๐Ÿ‡ท๐Ÿ‡บ 1
    ๐Ÿ‡ฐ๐Ÿ‡ท 6
    ๐Ÿ‡ธ๐Ÿ‡ฐ 1
    ๐Ÿ‘Œ๐Ÿฝ 1
    ๐Ÿ‘ญ๐Ÿผ 1
    ๐Ÿ‡จ๐Ÿ‡ฒ 1
  • a

    Alex Ruheni

    04/05/2022, 3:28 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    3.12.0
    prisma rainbow mongodb*MongoDB is now Generally Available* Today weโ€™re proud to announce that MongoDB is now stable and production-ready. After upgrading to
    3.12.0
    , you can remove the MongoDB preview flag in your schema:
    Copy code
    datasource db {
       provider = "mongodb"
       url      = env("DATABASE_URL")
     }
    
    generator client {
       provider        = "prisma-client-js"
    -  previewFeatures = ["mongoDb"]
     }
    Here are some of the feature highlights we developed over this period: โ€ข Expressive and type-safe operations for querying MongoDB embedded documents โ€ข Increased likelihood of referential integrity in your database โ€ข Thorough introspection support for using Prisma with existing MongoDB databases โ€ข Declarative index management right from your Prisma Schema with
    db push
    โ€ข Powerful raw query APIs to help you incrementally migrate to Prisma You can learn about these features in the release blog post and more in our freshly brewed MongoDB Guide. For newcomers to Prisma with MongoDB, we recommend checking out our Getting Started Guide. To celebrate this milestone, we invite you to join Prismaโ€™s MongoDB Launch Week starting on April 25th. Enjoy a jam-packed week of exclusive workshops with plenty of opportunities to win free MongoDB Atlas credits and swag. Itโ€™s free to sign-up and available anywhere you have an internet connection. ๐Ÿšจ Please be aware that we made a few breaking changes to tie up loose ends before General Availability: โ€ข `@db.Array` replaced with `@db.ObjectId` โ€ข Removed Decimal support We made some changes in the `3.11.1` patch release, in case you missed it. ๐Ÿ—„๏ธ Index support on composite type fields We also added support for adding indexes on embedded document fields in MongoDB. You can now define a normal, unique, or full-text index in your schema.
    Copy code
    type Address {
      street String
      number Int
    }
    
    model User {
      id      Int     @id
      email   String
      address Address
    
      @@index([email, address.number])  /// normal index
      @@unique([email, address.street])  /// unique index
      @@fulltext([email, address.street]) /// full-text index
    }
    Note: Prisma Client does not yet fully support this feature and will be rolled out in a future release
    ๐Ÿ”Œ Improved connection pooling resiliency In
    3.12.0
    , we busted a ghost that has been bugging teams since the early days of the Prisma ORM. Under certain amounts of load, some people reported that the connection pool would sometimes drop connections or deadlock and not recover. After many sightings and much head-scratching, we could finally reproduce the issue. This allowed us to narrow down the problem to one of our dependencies and fix the problem. To read the nitty-gritty details of the problem and our solution, check out this issue. ๐Ÿ“š 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 it 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 This week, @nikolasburk, @Sabin Adams, and I will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    mongodb 34
    ๐Ÿš€ 22
    ๐Ÿ‡ฎ๐Ÿ‡น 3
    prisma green 9
    ๐Ÿ“ฃ 6
    โค๏ธ 7
    ๐Ÿ‡ฉ๐Ÿ‡ช 4
    ๐Ÿ•บ๐Ÿฝ 1
    ๐Ÿณ๏ธโ€๐ŸŒˆ 3
    ๐ŸŽค 3
    ๐Ÿ•บ 5
    ๐Ÿ‡บ๐Ÿ‡ฟ 2
    ๐Ÿ‡ฐ๐Ÿ‡ช 5
    ๐Ÿ‡ณ๐Ÿ‡ฌ 5
    โœ… 2
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 2
    ๐Ÿ‡ณ๐Ÿ‡ฑ 2
    ๐ŸŽ‰ 38
    ๐Ÿฆœ 12
    prisma rainbow 18
    ๐Ÿ’š 6
    โœจ 4
    ๐Ÿคฉ 4
    ๐Ÿ‘๐Ÿฝ 1
    ๐Ÿ‡บ๐Ÿ‡ธ 3
    ๐ŸŒŸ 2
    ๐Ÿ‡ณ๐Ÿ‡ด 2
    ๐Ÿ‡ฌ๐Ÿ‡ท 3
    ๐Ÿ‡ฎ๐Ÿ‡ณ 10
    ๐Ÿ‡ซ๐Ÿ‡ท 3
    ๐Ÿ‡บ๐Ÿ‡ฆ 3
    ๐Ÿ™Œ 3
    ๐Ÿ‡ง๐Ÿ‡ท 2
    ๐Ÿ† 2
    ๐Ÿ‡ท๐Ÿ‡บ 1
    ๐Ÿ‡ต๐Ÿ‡ฑ 9
    fast parrot 33
    ๐Ÿ‡ฒ๐Ÿ‡พ 3
    ๐Ÿ’ฏ 13
    ๐Ÿ’ฅ 6
    ๐ŸŒถ๏ธ 7
    prisma cool 60
    ๐Ÿ‡ฌ๐Ÿ‡ง 1
    ๐Ÿ‘๐Ÿฟ 1
    ๐Ÿ‘๐Ÿผ 1
    ๐Ÿ‘ 11
    ๐Ÿ“ฝ๏ธ 1
    india parrot 4
    ๐Ÿ‡ช๐Ÿ‡น 2
    ๐Ÿ‘€ 2
    ๐Ÿ‡ท๐Ÿ‡ผ 2
    ๐Ÿ‡ฐ๐Ÿ‡ท 9
    ๐Ÿ‡ต๐Ÿ‡ญ 2
  • a

    Alex Ruheni

    04/26/2022, 4:49 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    3.13.0
    prisma rainbow ๐Ÿ”
    migrate diff
    and
    db execute
    are now Generally Available!
    Weโ€™re proud to announce that the commands are now Generally Available and can now be used without the
    --preview-feature
    flag. ๐ŸŽ‰ The
    prisma migrate diff
    and
    prisma db execute
    commands make it possible to build many new workflows such as forward and down migrations with some automation tooling. Take a look at our documentation to learn some of the popular workflows these commands unlock: โ€ข Fixing failed migrations โ€ข Squashing migrations โ€ข Generating down migrations Let us know what tools, automation, and scripts you build using these commands. ๐Ÿ”ฎ SQL Server index clustering(Preview) In version
    3.5.0
    , we introduced the
    extendedIndexes
    Preview feature which we have constantly been adding new configuration options for indexes. In this release, we added support for enabling or disabling index/constraint clustering in SQL Server. By default, indexes will be clustered by default. You can update this in your schema as follows to disable index clustering:
    Copy code
    datasource db {
      provider = "sqlserver"
      url      = env("DATABASE_URL")
    }
    
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["extendedIndexes"]
    }
    
    model Post {
      id      Int     @default(autoincrement()) @id(clustered: false)
      title   String
      content String?
    }
    The following SQL will be generated in your migration when you run
    prisma migrate dev
    Copy code
    CREATE TABLE [Post] (
      id INT NOT NULL,
      [title] VARCHAR(255) NOT NULL,
      [content] NVARCHAR(1000),
      CONSTRAINT [Post_pkey] PRIMARY KEY NONCLUSTERED (id)
    )
    If youโ€™ve enabled the
    extendedIndexes
    Preview feature, this is potentially a breaking change. Refer to our documentation to learn how you can upgrade from a previous version. ๐Ÿฆฆ Updated native types for CockroachDB (Preview) We have revamped the native types available in the CockroachDB connector. We initially re-used the PostgreSQL native types because they were close enough, but we have now adapted our list of the supported native types to match what CockroachDB supports. If you are already using CockroachDB in your project, you can run
    prisma db pull
    to update all the native types in your Prisma schema. Refer to our documentation for the complete list of all CockroachDB native types. OpenSSL 3.0 support Weโ€™re excited to announce that version
    3.13.0
    now supports OpenSSL 3.0. ๐Ÿ“š 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 it 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 This week, @nikolasburk, @Sabin Adams, and I will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿฆค 1
    ๐Ÿ‡ฒ๐Ÿ‡ป 1
    ๐Ÿ”ฅ 9
    ๐Ÿ’ฅ 4
    ๐Ÿฆฆ 3
    ๐Ÿฆœ 22
    ๐Ÿ™Œ 9
    ๐Ÿ’ฏ 9
    ๐ŸŽค 4
    ๐Ÿ“ฃ 5
    โœ… 4
    ๐Ÿ‡ณ๐Ÿ‡ด 2
    ๐Ÿ‡ฐ๐Ÿ‡ท 7
    ๐ŸŽƒ 22
    ๐Ÿ‡ฒ๐Ÿ‡พ 3
    ๐Ÿ‡ฏ๐Ÿ‡ต 7
    ๐Ÿ˜Ž 9
    ๐ŸŽ‰ 9
    ๐Ÿค– 4
    ๐ŸŒถ๏ธ 3
    ๐Ÿคฉ 4
    prisma cool 5
    ๐Ÿ‡ป๐Ÿ‡ช 1
    ๐Ÿ™Œ๐Ÿฟ 1
    โค๏ธ 2
    ๐Ÿ˜€ 2
    ๐Ÿ‡บ๐Ÿ‡ฟ 1
    fast parrot 40
    prisma rainbow 38
    prisma green 11
    ๐Ÿš€ 15
    ๐Ÿ’š 10
    catjam 10
    ๐ŸŒŸ 3
    โœจ 3
    ๐Ÿ‡ธ๐Ÿ‡ฆ 1
    ๐Ÿ“ฝ๏ธ 2
    ๐Ÿ‡ฆ๐Ÿ‡ท 1
    ๐Ÿ‡ฒ๐Ÿ‡ฌ 2
    india parrot 2
    ๐Ÿ‡ช๐Ÿ‡น 1
    pakistan parrot 1
    ๐Ÿ‡บ๐Ÿ‡ฆ 1
    ๐Ÿ‡ฆ๐Ÿ‡ฒ 1
    ๐Ÿ‡ง๐Ÿ‡ท 2
    ๐Ÿ‡ฎ๐Ÿ‡ณ 4
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    ๐Ÿ‡ท๐Ÿ‡ด 1
    ๐Ÿ‡ช๐Ÿ‡บ 1
    ๐Ÿ‡น๐Ÿ‡ท 2
    ๐Ÿ’ฟ 1
  • a

    Alex Ruheni

    05/10/2022, 2:57 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    3.14.0
    prisma rainbow ๐Ÿฆฆ CockroachDB connector is now Generally Available! We are proud to announce that the CockroachDB connector is now stable and Generally Available. If youโ€™re upgrading from Prisma version `3.9.0`+ or the PostgreSQL connector, you can now run
    npx prisma db pull
    and review the changes to your schema. To learn more about CockroachDB-specific native types we support, refer to our docs. To learn more about the connector and how it differs from PostgreSQL, head to our documentation. โšก*๏ธ PostgreSQL
    GIN
    ,
    GiST
    ,
    SP-GiST
    , and
    BRIN
    indexes support (Preview)* This release has expanded index type support with the GIN, GiST, SP-GiST, and BRIN indexes. To make use of an index type, you can update your Prisma schema by providing the
    type
    argument to the
    @@index
    attribute:
    Copy code
    datasource db {
      provider = "postgresql"
      url      = env("DATABASE_URL")
    }
    
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["extendedIndexes"]
    }
    
    model Post {
      id      Int     @id
      title   String
      content String?
      tags    Json?
      
      @@index([tags], type: Gin)
    }
    The following SQL will be generated in your migration when you run `prisma migrate dev`:
    Copy code
    CREATE TABLE "Post" (
        "id" INTEGER NOT NULL,
        "title" TEXT NOT NULL,
        "content" TEXT,
        "tags" JSONB,
        CONSTRAINT "Post_pkey" PRIMARY KEY ("id")
    );
    
    CREATE INDEX "Post_tags_idx" ON "Post" USING GIN ("tags");
    To learn more about configuring index types in your schema, refer to our documentation. ๐Ÿช„ Improved
    queryRaw
    API
    In this release, we made improvements to the SQL raw API. Some improvements are breaking and will be available behind the new
    improvedQueryRaw
    Preview feature flag.
    Copy code
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["improvedQueryRaw"]
    }
    The
    improvedQueryRaw
    Preview feature solves most of the issues faced when working with the raw API. We would encourage you to turn on the Preview feature flag, try out the new API, and let us know how we can make it even better. Here are some of the improvements we made to `queryRaw`: 1. Raw scalar values are deserialized as their correct JavaScript types Prisma Client queries such as
    findMany
    deserialize database scalar values to their corresponding JavaScript types. For example, a
    DateTime
    value is deserialized as a JavaScript
    Date,
    and a
    Bytes
    would be deserialized as a JavaScript
    Buffer
    . Raw queries now implement the same behavior when the
    improvedQueryRaw
    Preview feature flag is enabled. The types of values from the database will be used instead of the types in the Prisma schema. 2. PostgreSQL type-casts Weโ€™ve also fixed a lot of PostgreSQL type-casts that were broken by enabling the
    improvedQueryRaw
    Preview feature flag. A consequence of this fix is that some subtle implicit casts are now handled more strictly and would fail. 3. Query parameters are correctly sent to the database Before this release, query parameters of type
    BigInt
    ,
    Bytes
    , and
    Decimal
    were incorrectly sent to the database leading to instances of unexpected inserts. Passing the types as query parameters now works:
    Copy code
    await prisma.$executeRaw`INSERT INTO "Table" ("bigint", "bytes", "decimal") VALUES (${BigInt("123")}, ${Buffer.from([1, 2, 3])}, ${Decimal("12.23")});`
    This improvement is available without the
    improvedQueryRaw
    Preview feature flag.
    ๐Ÿ“š 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 it 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 This week, @nikolasburk and @Sabin Adams will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿ‡ณ๐Ÿ‡ฑ 1
    gopher love 4
    ๐Ÿฆœ 51
    ๐Ÿ‡ฏ๐Ÿ‡ต 8
    ๐Ÿ‡ต๐Ÿ‡ฑ 6
    ๐Ÿ”ฅ 19
    prisma rainbow 19
    ๐Ÿš€ 6
    โค๏ธ 7
    ๐Ÿ˜ป 4
    ๐Ÿ”ฎ 4
    fast parrot 39
    ๐Ÿ™Œ 39
    ๐ŸŽค 10
    ๐Ÿ‡ฟ๐Ÿ‡ผ 6
    ๐Ÿ’ฅ 6
    ๐Ÿ™Œ๐Ÿผ 2
    ๐Ÿฆฆ 4
    ๐Ÿ˜ 6
    ๐ŸคŸ๐Ÿผ 2
    ๐Ÿชณ 5
    ๐ŸŒŸ 4
    ๐Ÿ‡ฌ๐Ÿ‡พ 2
    ๐Ÿ‡ฐ๐Ÿ‡ท 10
    ๐Ÿ‡ฎ๐Ÿ‡ณ 8
    ๐Ÿ‡ท๐Ÿ‡ด 1
    ๐Ÿ‡ช๐Ÿ‡น 1
    ๐Ÿณ๏ธโ€๐ŸŒˆ 10
    โœจ 12
    ๐Ÿ™Œ๐Ÿพ 2
    southafrica parrot 3
    ๐Ÿคฉ 6
    ๐Ÿ‡ฆ๐Ÿ‡ท 2
    ๐Ÿ“ฃ 6
    prisma cool 7
    ๐ŸŽ‰ 5
    โญ 4
    ๐Ÿ˜Ž 6
    ๐ŸŒฏ 4
    ๐Ÿ‡ฆ๐Ÿ‡บ 2
    ๐Ÿ‡ฉ๐Ÿ‡ช 2
    ๐ŸคŸ 3
    ๐Ÿ‡ช๐Ÿ‡ธ 1
    ๐Ÿ™Œ๐Ÿฟ 1
    ๐ŸŒถ๏ธ 5
    ๐Ÿ’Œ 3
    ๐Ÿ™Œ๐Ÿป 1
    ๐Ÿ‡บ๐Ÿ‡ธ 3
    india parrot 6
    ๐Ÿ‡ง๐Ÿ‡ท 3
    ๐Ÿ‡ฒ๐Ÿ‡ฌ 2
  • a

    Alex Ruheni

    06/07/2022, 5:21 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    3.15.0
    prisma rainbow ๐Ÿ”ฎ Improvements to Prisma Client for Data Proxy The Prisma Data Proxy provides connection management and pooling for database connections for efficiently scaling database connections in serverless environments. The Prisma Client for Data Proxy includes support for connecting to the Prisma Data Proxy using HTTP. One of the changes in this release is improving the Prisma Client for the Data Proxy generation step. You can now generate Prisma Client for the Data Proxy it using the
    --data-proxy
    flag:
    Copy code
    npx prisma generate --data-proxy
    We also updated how you can run Prisma Client using the Data Proxy in Cloudflare Workers and Edge environments. You can now use
    @prisma/client/edge
    instead of
    @prisma/client
    in your application.
    Copy code
    import { PrismaClient } from '@prisma/client/edge'
    To learn more, check out our documentation. ๐Ÿ“Š Prisma Client Metrics is now in Preview Metrics is a new Preview feature that allows you to monitor how Prisma Client interacts with your database. Metrics expose a set of counters, gauges, and histograms that can be labeled and piped into an external monitoring system like Prometheus or StatsD. You can use metrics in your project to help diagnose how your applicationโ€™s number of idle and active connections changes with counters, gauges, and histograms. To get started using metrics in your project, enable the Preview feature flag in your Prisma schema:
    Copy code
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["metrics"]
    }
    You can then get started using metrics in your project:
    Copy code
    import { PrismaClient } from '@prisma/client'
    const prisma = new PrismaClient()
    
    const metrics = await prisma.$metrics.json()
    console.log(metrics)
    To learn more, check out the metrics documentation. Give it a try and let us know what you think. ๐Ÿ”ง
    migrate reset
    now returns with a non-0 exit code if the seed script returns with a non-0 exit code
    This will help user scripts know more about the success of the command but might break existing scripts. ๐Ÿ“š 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 it 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 This week, @Tasin Ishmam and I will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿ‡ช๐Ÿ‡น 2
    ๐Ÿ˜„ 1
    3๏ธโƒฃ 4
    5๏ธโƒฃ 3
    1๏ธโƒฃ 4
    0๏ธโƒฃ 4
    ๐ŸŽค 16
    ๐Ÿ’ซ 15
    ๐Ÿณ๏ธโ€๐ŸŒˆ 23
    prisma cool 41
    ๐Ÿ˜ป 17
    ๐Ÿ‡ฆ๐Ÿ‡ท 5
    ๐Ÿ† 5
    catjam 8
    ๐ŸŒŸ 5
    ๐Ÿš€ 7
    โญ 5
    ๐Ÿ”ฅ 5
    ๐Ÿ™๐Ÿพ 1
    ๐Ÿ’š 4
    ๐Ÿฆฆ 3
    ๐Ÿ™๐Ÿฟ 1
    ๐Ÿ’ช๐Ÿฟ 1
    ๐ŸŒถ๏ธ 41
    ๐ŸŽ‰ 25
    ๐Ÿ’ช๐Ÿป 1
    ๐Ÿ‡ฐ๐Ÿ‡ช 10
    prisma rainbow 18
    ๐Ÿ’ช 18
    ๐Ÿ‡ฐ๐Ÿ‡ท 7
    ๐Ÿ™ 7
    โœจ 6
    ๐Ÿ™Œ๐Ÿป 1
    ๐Ÿ™Œ 10
    ๐Ÿ™Œ๐Ÿพ 1
    ๐Ÿ™Œ๐Ÿผ 2
    ๐Ÿ•ถ๏ธ 3
    ๐Ÿ™Œ๐Ÿฟ 1
    fast parrot 25
    ๐Ÿ’ช๐Ÿพ 1
    ๐Ÿ‡ง๐Ÿ‡ท 8
    ๐Ÿ’ฏ 10
    ๐Ÿ‘พ 4
    prisma green 10
    ๐Ÿ’ช๐Ÿผ 3
    ๐Ÿ™๐Ÿผ 2
    ๐Ÿฆœ 4
    ๐Ÿ•บ๐Ÿพ 1
    ๐Ÿ‡ฏ๐Ÿ‡ต 2
    ๐Ÿ‡ฎ๐Ÿ‡ณ 3
  • m

    Michelle Greer

    06/28/2022, 3:10 PM
    Hello! ๐Ÿ‘‹ In case you missed it, we launched the Prisma Data Platform at Prisma Day. The Prisma Data Platform simplifies using Prisma in production, and includes: 1. A Data Proxy, which provides connection pooling for serverless workloads 2. A collaborative Data Browser that allows you to manage and verify your application data in the cloud 3. A Query Console for testing your queries without needing to run them in your code locally The Prisma Data Platform is free to start. As you can scale, you can upgrade your plan to gain features like increased CPU for your Data Proxy and role-based access control. You can learn more and sign up for free here --> https://www.prisma.io/data-platform If you have any questions, please let me know.
    โค๏ธ 4
  • a

    Alex Ruheni

    06/28/2022, 3:14 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    4.0.0
    prisma rainbow Prisma
    4.0.0
    features a variety of improvements across Prisma Migrate, Prisma schema, and Prisma Client. These changes will impact most Prisma users, particularly those who used some of our most popular Preview features around advanced index management, raw SQL queries, and filtering rows by properties of JSON. As this is a major release, we included many breaking bug fixes and other enhancements, but we believe upgrading is worthwhile. You can find a detailed guide in the Prisma 4 Upgrade guide. Hereโ€™s a summary of the changes: ๐Ÿฆฆ Preview features moved to General Availability: โ€ข
    extendedIndexes
    โ€ข
    filterJson
    โ€ข
    improvedQueryRaw
    ๐Ÿ—ƒ๏ธ Default values for scalar lists Prisma 4 now introduces support for defining default values for scalar lists (arrays) in the Prisma schema. You can define default scalar lists in your schema as follows:
    Copy code
    model User {
      id             Int      @id @default(autoincrement())
      posts          Post[]
      favoriteColors String[] @default(["red", "blue", "green"])
    }
    Refer to our docs to learn more about this feature. mongodb Improved default support for embedded documents From version
    4.0.0
    , you can now define default values on embedded documents using the
    @default
    attribute. Prisma will provide the specified default value on reads if a field is not defined in the database. Refer to our upgrade guide for a detailed explanation and steps when working with default fields on composite types in MongoDB. ๐Ÿช„ New Prisma Client APIs โ€“
    findUniqueOrThrow
    &
    findFirstOrThrow
    Weโ€™re introducing two new APIs to Prisma Client: โ€ข
    findUniqueOrThrow
    โ€“ retrieves a single record as
    findUnique
    but returns
    RecordNotFound
    exception when no record is not found โ€ข
    findFirstOrThrow
    โ€“ retrieves the first record in a list as
    findFirst
    but returns a
    RecordNotFound
    exception when no record is found The APIs will be convenient for scripts API routes where youโ€™re already handling exceptions and want to fail fast. ๐Ÿš€ Improvements and breaking changes Hereโ€™s a list of more breaking changes and improvements we shipped: โ€ข Deprecating
    rejectOnNotFound
    โ€ข Fix rounding errors on big numbers in SQLite โ€ข
    DbNull
    ,
    JsonNull
    , and
    AnyNull
    are now objects โ€ข Prisma Studio updates โ€ข Dropped support for Node 12 โ€ข New default sizes for statement cache โ€ข Removal of undocumented support for the
    type
    alias โ€ข Removal of the
    sqlite
    protocol for SQLite URLs โ€ข Better grammar for string literals โ€ข Explicit unique constraints for 1:1 relations โ€ข Removed support for the usage of
    references
    on implicit m:n relations โ€ข Enforcing the uniqueness of referenced fields in the
    references
    argument in 1:1 and 1:m relations for MySQL โ€ข Renaming of
    @prisma/sdk
    npm package to
    @prisma/internals
    โ€ข Removal of the internal
    schema
    property from the generated Prisma Client ๐Ÿ“š 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 This week, @nikolasburk and @Sabin Adams will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿ™Œ๐Ÿพ 1
    ๐Ÿ‡น๐Ÿ‡ฟ 1
    ๐Ÿ‘ 9
    โค๏ธ 12
    ๐Ÿ“ฝ๏ธ 4
    ๐Ÿ‡บ๐Ÿ‡ฆ 3
    ๐Ÿ”ฎ 5
    fast parrot 64
    ๐Ÿ’ฅ 12
    ๐Ÿ‡ฎ๐Ÿ‡ณ 10
    ๐Ÿ’ฏ 48
    ๐Ÿ‡ง๐Ÿ‡ท 10
    ๐Ÿ™Œ 27
    ๐Ÿ‡ฐ๐Ÿ‡ช 5
    germany parrot 10
    4๏ธโƒฃ 30
    ๐ŸŽƒ 13
    ๐Ÿ‡ฏ๐Ÿ‡ต 16
    ๐Ÿš€ 41
    ๐Ÿฆฆ 5
    โœจ 8
    prisma cool 11
    ๐Ÿค– 3
    ๐ŸŒถ๏ธ 4
    ๐Ÿฆ” 2
    ๐ŸŒˆ 6
    alphabet white i 11
    alphabet white a 11
    ๐Ÿ‡ฐ๐Ÿ‡ท 9
    ๐Ÿ™Œ๐Ÿฟ 1
    ๐Ÿ‡ช๐Ÿ‡น 1
    ๐Ÿ‡ต๐Ÿ‡ฑ 13
    prisma rainbow 80
    ๐ŸŽค 4
    ๐Ÿ‘๐Ÿพ 1
    ๐Ÿ‡บ๐Ÿ‡ฟ 3
    catjam 7
    ๐Ÿ‡ฆ๐Ÿ‡ท 2
    ๐Ÿ‡จ๐Ÿ‡ฆ 3
    alphabet white p 11
    alphabet white s 11
    ๐Ÿ‡ฎ๐Ÿ‡ฑ 3
    ๐Ÿ‡ฒ๐Ÿ‡ฌ 2
    ๐Ÿ‡น๐Ÿ‡ท 2
    spain parrot 1
    ๐Ÿ“ฃ 5
    ๐Ÿฆ‘ 2
    ๐Ÿณ๏ธโ€๐ŸŒˆ 6
    alphabet white r 11
    alphabet white m 11
    ๐Ÿ™Œ๐Ÿผ 2
    mongodb 2
    ๐Ÿ‡ซ๐Ÿ‡ท 4
  • a

    Alex Ruheni

    07/19/2022, 1:46 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    4.1.0
    prisma rainbow In case you missed it, we held a

    livestreamโ–พ

    last week and walked through issues you may run into while upgrading to Prisma 4 and how to fix them! ๐Ÿงฉ Ordering by nulls first and last support (Preview) In this release, weโ€™re adding support for choosing how to sort null values in a query. To get started, enable the
    orderByNulls
    Preview feature flag in your Prisma schema.
    Copy code
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["orderByNulls"]
    }
    Next, run
    prisma generate
    to re-generate Prisma Client. You will now have new fields you can now use to order null values:
    Copy code
    await prisma.post.findMany({
      orderBy: {
        updatedAt: { 
          sort: 'asc',
          nulls: 'last'
        },
      },
    })
    Learn more in our documentation, and donโ€™t hesitate to share your feedback on this issue. โšก Fixed memory leaks and CPU usage in Prisma Client In this release, weโ€™ve fixed the following issues experienced when setting up and tearing down Prisma Client while running tests: 1. Prisma Client now correctly releases memory on Prisma Client instances that are no longer being used. Learn more in this GitHub issue 2. Reduced CPU usage spikes when disconnecting Prisma Client instances while using Prisma Client. You can learn more in this GitHub issue These fixes will allow you to run your tests a little faster! ๐Ÿ’… Prisma Studio improvements Weโ€™re refining the experience when working with Prisma studio with the following changes: 1. An always visible filter panel and functionality to clear all filters at once 2. Improved relationship model view with more visible buttons ๐Ÿ“š 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 it 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 This week, @Tasin Ishmam and @Sabin Adams will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿงฉ 2
    ๐Ÿš€ 53
    ๐Ÿ’ฅ 5
    ๐Ÿ‡ฌ๐Ÿ‡ท 1
    ๐Ÿ‡ง๐Ÿ‡ท 2
    ๐ŸŒ€ 1
    ๐Ÿ‡ท๐Ÿ‡ผ 1
    ๐Ÿ‡ฟ๐Ÿ‡ฒ 3
    โœจ 4
    portugal parrot 2
    ๐ŸŒŸ 2
    โญ 3
    ๐Ÿ’… 4
    ๐Ÿ‡ฒ๐Ÿ‡ฌ 2
    ๐Ÿ‡น๐Ÿ‡ท 2
    ๐Ÿฆ” 1
    catjam 2
    ๐Ÿ‡ณ๐Ÿ‡ฟ 1
    ๐Ÿ‡ต๐Ÿ‡ฑ 7
    fast parrot 22
    prisma rainbow 17
    ๐ŸŒถ๏ธ 5
    china parrot 4
    ๐Ÿ“ฝ๏ธ 3
    ๐Ÿ•บ๐Ÿพ 1
    ๐Ÿ‡ซ๐Ÿ‡ฎ 2
    ๐Ÿ™Œ๐Ÿฟ 1
    ๐Ÿ‡จ๐Ÿ‡ฑ 1
    ๐Ÿ’ฏ 3
    ๐Ÿ‡ท๐Ÿ‡ด 2
    ๐Ÿ‡ณ๐Ÿ‡ด 1
    ๐Ÿ‡ง๐Ÿ‡ฌ 1
    ๐Ÿฆœ 27
    prisma cool 12
    ๐Ÿ‡ฐ๐Ÿ‡ช 6
    ๐Ÿ“ฃ 4
    ๐ŸŽค 3
    ๐Ÿ•บ 2
    ๐Ÿ‡ฏ๐Ÿ‡ต 4
    ๐Ÿ’…๐Ÿพ 1
    โค๏ธ 8
    ๐Ÿ‡ต๐Ÿ‡ฐ 1
    ๐Ÿ‡ฐ๐Ÿ‡ท 6
    ๐Ÿ˜ 2
    ๐Ÿ‡จ๐Ÿ‡ท 1
    ๐Ÿ‡บ๐Ÿ‡ฆ 2
    ๐ŸŽ… 1
    ๐Ÿ‡ฎ๐Ÿ‡ณ 12
    ๐Ÿ€ 12
  • a

    Alex Ruheni

    08/09/2022, 12:29 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    4.2.0
    prisma rainbow ๐Ÿ“ˆ Prisma Client tracing support (Preview) Weโ€™re excited to announce Preview support for tracing in Prisma Client! ๐ŸŽ‰ Tracing allows you to track requests as they flow through your application. This is especially useful for debugging distributed systems where each request can span multiple services. Read more about tracing in our announcement post and learn more in our documentation on how to start working with tracing. Try it out and let us know what you think. ๐ŸŽš๏ธ Isolation levels for interactive transactions We have improved the
    interactiveTransactions
    Preview feature with the support for defining the isolation level of an interactive transaction. To set the transaction isolation level, use the
    isolationLevel
    option in the second parameter of the API. For example:
    Copy code
    await prisma.$transaction(
      async (prisma) => {
        // Your transaction...
      },
      {
        isolationLevel: Prisma.TransactionIsolationLevel.Serializable,
        maxWait: 5000,
        timeout: 10000,
      }
    )
    Learn more about it in our documentation. Try it out, and let us know what you think in this GitHub issue. โœ๏ธ Renaming of Prisma Client Metrics In this release, weโ€™ve renamed the metrics โ€” counters, gauges, and histograms โ€” returned from
    prisma.$metrics()
    to make it a little easier to understand at a glance. Give Prisma Client
    metrics
    a shot, and let us know what you think in this GitHub issue. To learn more, check out our documentation. ๐Ÿ’… Syntax highlighting for raw queries in Prisma Client This release adds syntax highlighting support for raw SQL queries when using `$queryRaw``` and `$executeRaw```. This is made possible using Prismaโ€™s VS Code extension. Note: Syntax highlighting currently doesnโ€™t work with when using parentheses,
    ()
    ,
    $queryRaw()
    ,
    $executeRaw()
    ,
    $queryRawUnsafe()
    , and
    $executeRawUnsafe()
    . If you are interested in having this supported, let us know in this GitHub issue. ๐Ÿ“š 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 it 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 This week, @Tasin Ishmam and I will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿš€ 50
    ๐Ÿ‘‹ 1
    โœ… 1
    ๐Ÿ‡ง๐Ÿ‡ท 1
    ๐ŸŒฟ 1
    ๐Ÿ‡ง๐Ÿ‡ฏ 1
    ๐Ÿ˜ป 9
    ๐Ÿ‡บ๐Ÿ‡ฟ 1
    ๐Ÿฟ๏ธ 4
    ๐Ÿ‡ฐ๐Ÿ‡ช 2
    4๏ธโƒฃ 2
    2๏ธโƒฃ 2
    ๐Ÿ‡ฆ๐Ÿ‡บ 1
    ๐Ÿ‡ณ๐Ÿ‡ฌ 2
    ๐Ÿ”ฅ 9
    ๐ŸŒŸ 8
    ๐Ÿ’ฅ 6
    ๐Ÿ”ฎ 6
    ๐Ÿ€ 9
    catjam 4
    ๐Ÿฉ 2
    ๐Ÿ‡จ๐Ÿ‡ฑ 1
    0๏ธโƒฃ 2
    prisma cool 17
    ๐Ÿค– 9
    ๐Ÿ‡ฐ๐Ÿ‡ท 11
    ๐Ÿ 9
    โœจ 6
    ๐Ÿณ๏ธโ€๐ŸŒˆ 7
    ๐Ÿ‡ณ๐Ÿ‡ด 1
    ๐ŸŽฉ 3
    godmode 1
    ๐Ÿ‘ 2
    ๐Ÿ˜ 1
    prisma rainbow 15
    ๐Ÿ“ฝ๏ธ 6
    fast parrot 9
    ๐ŸŽƒ 9
    ๐Ÿ‡ท๐Ÿ‡ด 7
    ๐ŸŽŠ 7
    america parrot 5
    ๐Ÿ‡ณ๐Ÿ‡ต 1
    ๐Ÿ‡ซ๐Ÿ‡ท 2
    ๐Ÿ‡ฎ๐Ÿ‡ท 1
    ๐Ÿฆœ 35
    โญ 12
    ๐Ÿ˜Ž 6
    ๐Ÿ‡ฟ๐Ÿ‡ฒ 1
    ๐Ÿ‡ฏ๐Ÿ‡ต 9
  • a

    Alex Ruheni

    08/30/2022, 5:25 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    4.3.0
    prisma rainbow ๐Ÿฆฆ Field reference support on query filters (Preview) Weโ€™re excited to announce Preview support for field references. You can enable it with the
    fieldReference
    Preview feature flag. Field references will allow you to compare columns against other columns. Given the following schema:
    Copy code
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["fieldReference"]
    }
    
    model Invoice {
      id     Int @id @default(autoincrement)
      paid   Int
      due    Int
    }
    You can now compare columns against each other. For example:
    Copy code
    // Filter all invoices that haven't been paid yet
    await prisma.invoice.findMany({
      where: {
        paid: {
          lt: prisma.invoice.fields.due // paid < due
        }
      }
    })
    Learn more about field references in our documentation. Try it out and let us know your thoughts on this GitHub issue. ๐Ÿงฉ Count by filtered relation (Preview) This release adds support for the ability to count by a filtered relation. You can enable this feature by adding the
    filteredRelationCount
    Preview feature flag. You can now express the following query:
    Copy code
    // Count all published user posts 
    await prisma.user.findMany({
      select: {
        _count: {
          posts: { where: { published: true } },
        },
      },
    })
    Learn more in our documentation and let us know what you think in this issue ๐Ÿคน๐Ÿพ Multi-schema support (Experimental) In this release, weโ€™re adding very early Preview support of multi-schema support for PostgreSQL and SQL Server behind the
    multiSchema
    Preview feature flag. With it, you can write a Prisma schema that accesses models across multiple schemas. Read further in this GitHub issue. Try it out and let us know your thoughts on this GitHub issue. ๐Ÿš€ Prisma CLI exit code fixes Weโ€™ve made several improvements to the Prisma CLI to ensure it returns the correct exit code in the event of a failure. Read more about the improvements in the release notes. ๐Ÿ” Improved precision for the
    tracing
    Preview feature
    Before this release, you may have occasionally seen some traces that took 0ฮผs working with the
    tracing
    Preview feature. In this release, weโ€™ve increased the precision to ensure you get accurate traces. Let us know if you run into any issues in this GitHub issue. ๐Ÿช„ Prisma extension for VS Code improvements The Prisma language server now provides Symbols in VS Code. This means you can now: โ€ข See the different blocks (
    datasource
    ,
    generator
    ,
    model
    ,
    enum
    , and
    type
    ) of your Prisma schema in the Outline view. This makes it easier to navigate to a block in 1 click. โ€ข Enable Editor sticky scroll from version
    1.70
    of VS Code. This means you can have sticky blocks in your Prisma schema, improving your experience when working with big schema files. ๐Ÿ”Œ Prisma Client Extensions: Request for comments For the last couple of months, weโ€™ve been working on a specification for an upcoming feature โ€” Prisma Client extensions. Weโ€™re ready to share our proposed design and would appreciate your feedback. Prisma Client Extensions aims to provide a type-safe way to extend your existing Prisma Client instance. With Prisma Client Extensions, you can: โ€ข Define computed fields โ€ข Define methods for your models โ€ข Extend your queries โ€ข Exclude fields from a model ... and much more! For further details, refer to this GitHub issue. Please have a read, and let us know what you think! ๐Ÿ“š 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 This week, @nikolasburk and @Sabin Adams will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    catjam 2
    ๐Ÿ”ฅ 1
    ๐Ÿš€ 6
    ๐ŸŽ‰ 3
    fast parrot 4
    ๐ŸŒถ๏ธ 2
    prisma rainbow 12
    ๐Ÿ’ฏ 5
    ๐Ÿฆœ 3
    ๐Ÿ˜Ž 4
    canada parrot 2
    ๐ŸŽค 2
    ๐Ÿ“ฃ 3
    ๐Ÿ‡ง๐Ÿ‡ท 1
    ๐Ÿ‡ฐ๐Ÿ‡ท 6
    ๐Ÿ‘ 12
    ๐Ÿ‡ต๐Ÿ‡ฑ 2
    ๐Ÿ‡ง๐Ÿ‡ฌ 1
    ๐Ÿ•บ 2
    prisma cool 6
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    ๐Ÿ‡ฎ๐Ÿ‡น 1
    ๐Ÿ‡ท๐Ÿ‡ด 1
    southafrica parrot 1
    ๐Ÿ”ญ 1
    ๐Ÿ‡ณ๐Ÿ‡ต 1
    โœจ 1
    ๐ŸŒŸ 1
    ๐Ÿ‡ฏ๐Ÿ‡ต 1
    โค๏ธ 1
  • j

    janpio

    09/27/2022, 7:30 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    4.4.0
    prisma rainbow ๐Ÿงน General improvements In the last sprint, we focused our efforts on squashing as many bugs as we could. You can find the full list of improvements and bug fixes in the Fixes and improvements section of the release notes. Some of the notable improvements we made include but are not limited to: โ€ข Improved optimistic concurrency control (GitHub issue) โ€ข Improved decimal precision โ€ข Improved handling of big amounts of prepared statement placeholders ๐ŸŽš๏ธ
    isolationLevel
    for sequential transaction operations
    In version
    4.2.0
    , we added support for setting transaction isolation levels for interactive transactions (Preview). You can now define isolation levels for sequential transaction operations:
    prisma.$transaction([ ])
    . For example:
    Copy code
    await prisma.$transaction(
      [
        // sequential operations
        prisma.user.create({ data: {/** args */ } }),
        prisma.post.create({ data: {/** args  */ } })
      ],
      {
        isolationLevel: Prisma.TransactionIsolationLevel.Serializable
      }
    )
    Learn more about it in our documentation. ๐Ÿ” New
    P2034
    error code for transaction conflicts or deadlocks
    When using certain isolation levels, it is expected that a transaction can fail due to a write conflict or a deadlock, throwing an error. One way to solve these cases is by retrying the transaction. To make this easier, weโ€™re introducing a new
    PrismaClientKnownRequestError
    with the error code `P2034`: โ€œTransaction failed due to a write conflict or a deadlock. Please retry your transactionโ€. You can programmatically catch the error and retry the transaction. ๐Ÿ“š 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 This week, @nikolasburk and @Alex Ruheni. will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on YouTubeโ–พ

    this Thursday at 5pm Berlin | 8 am San Francisco.
    ๐Ÿณ๏ธโ€๐ŸŒˆ 3
    ๐Ÿ‡ต๐Ÿ‡ฑ 1
    ๐Ÿ‡ฌ๐Ÿ‡ท 2
    ๐Ÿ’ซ 5
    โค๏ธ 16
    ๐Ÿ‡บ๐Ÿ‡ฟ 2
    party postgres 4
    prisma cool 7
    ๐ŸŒฑ 2
    ๐Ÿ†– 1
    ๐Ÿ‡ง๐Ÿ‡ท 2
    ๐ŸŒฏ 4
    ๐Ÿ‡ฐ๐Ÿ‡ท 6
    prisma rainbow 7
    ๐Ÿฟ๏ธ 2
    ๐Ÿ‡ฎ๐Ÿ‡ณ 1
    ๐Ÿ‡ซ๐Ÿ‡ท 3
    โœ… 2
    ๐Ÿ˜Ž 1
    ๐Ÿ‡ต๐Ÿ‡ฐ 1
    ๐Ÿ“ฃ 2
    fast parrot 8
    ๐Ÿš€ 5
    ๐Ÿ”ฅ 6
    ๐ŸŒŸ 3
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    โ˜€๏ธ 1
    ๐Ÿ˜ป 7
    ๐Ÿ‡ณ๐Ÿ‡ฌ 1
    ๐Ÿ‡ฏ๐Ÿ‡ต 3
    ๐ŸŒถ๏ธ 6
    catjam 15
    ๐Ÿ‡ธ๐Ÿ‡ฐ 1
    ๐Ÿ‡ฐ๐Ÿ‡ช 1
    ๐Ÿ‡ฑ๐Ÿ‡ฐ 1
    ๐Ÿ‡ฟ๐Ÿ‡ฒ 1
    ๐Ÿ‡ฆ๐Ÿ‡บ 1
    ๐Ÿ‡ฒ๐Ÿ‡ฌ 1
  • t

    Tasin Ishmam

    10/18/2022, 6:03 PM
    Hey <!everyone> โœŒ๏ธ prisma cool We just released Prisma
    4.5.0
    prisma rainbow ๐Ÿ” Filter for non-unique properties in unique where queries (Preview) In this release, we are adding support for non-unique properties inside the
    where
    statement for queries that operate on a unique record (e.g.:
    findUnique
    ,
    update
    ,
    delete
    , etc.). This was not possible in the past, as we only allowed unique fields as filters inside the
    where
    statement for the queries in question. With
    4.5.0
    , we are adding support to specify any number of non-unique fields in your
    where
    statement, as long as you have at least one unique field. To use it, enable the Preview feature flag:
    Copy code
    generator js {
      provider        = "prisma-client-js"
      previewFeatures = ["extendedWhereUnique"]
    }
    To learn more about this feature and about use cases where it can be useful, please check out our documentation. For feedback, please leave a comment on the GitHub issue. ๐Ÿ˜ PostgreSQL extension management (Preview) We are excited to add support for declaring PostgreSQL extensions in the Prisma schema. The feature comes with support for introspection and migrations. This will allow you to adopt, evolve and manage which PostgreSQL database extensions are installed directly from within your Prisma schema. To try this feature, enable the Preview feature flag:
    Copy code
    generator client {
      provider        = "prisma-client-js"
      previewFeatures = ["postgresqlExtensions"]
    }
    
    datasource db {
      provider = "postgresql"
      url      = env("DATABASE_URL")
    }
    Now you will be able to use the new
    extensions
    property in the
    datasource
    block of your Prisma schema.
    Copy code
    datasource db {
      provider   = "postgresql"
      url        = env("DATABASE_URL")
      extensions = [hstore(schema: "myHstoreSchema"), pg_tgrm, postgis(version: "2.1")]
    }
    Please visit our documentation to learn more about this feature or leave a comment with feedback on the GitHub issue. ๐Ÿ”— Change to Referential Integrity โ€” property in
    datasource
    block renamed to
    relationMode
    (Preview)
    We decided to rename the feature to Relation Mode. We think this closer reflects what this feature does and distinguishes it from integrity management on the database level. The related property in the
    datasource
    block of the Prisma schema has also been changed from
    referentialIntegrity
    to
    relationMode
    . To use it, keep using the old
    referentialIntegrity
    Preview feature flag:
    Copy code
    generator js {
      provider        = "prisma-client-js"
      previewFeatures = ["referentialIntegrity"]
    }
    But use the new property name in the `datasource`:
    Copy code
    datasource db {
      provider     = "mysql"
      url          = env("DATABASE_URL")
      relationMode = "prisma"
    }
    We also removed the referential action
    NoAction
    for PostgreSQL and SQLite when using
    relationMode = "prisma"
    as we are not planning to support the details of the database behavior. To learn more about
    relationMode
    , please check out the documentation or leave a comment on the GitHub issue. ๐Ÿฆ• Deno for Prisma Client for Data Proxy (Preview) Today we are releasing initial support for Prisma with Deno via an integration for our Prisma Client for Data Proxy. This feature was developed together with the amazing team at Deno. Read this guide in our documentation for a full example and individual steps. For feedback, please comment on this GitHub issue. ๐Ÿš€ Fixed โ€œInvalid string lengthโ€ error in Prisma Studio Many people were having issues with an "Invalid string length" error both in Prisma Studio and Data Browser. This issue can be resolved through this workaround. With this release, the root cause of this issue has been fixed. ๐Ÿ“ƒ Updated proposal for Client Extensions: request for comments In
    4.3.0
    , we shared a proposal for Prisma Client Extensions on Github. We received a lot of great feedback, which we have incorporated into a new proposal. If youโ€™re interested, please head over to the new proposal in GitHub and tell us what you think. Thank you! ๐Ÿ“š 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 This week, Niko and I will discuss the latest release and other news from the Prisma ecosystem in a

    livestream on Youtubeโ–พ

    this Thursday at 5 pm Berlin | 8 am San Francisco.
    ๐Ÿ‡ฐ๐Ÿ‡ท 2
    ๐Ÿ‡ป๐Ÿ‡ณ 1
    fast parrot 1
  • t

    Tasin Ishmam

    10/20/2022, 2:30 PM
    Hey folks ๐Ÿ‘‹ ๐Ÿ“ฐ On todayโ€™s โ€œWhatโ€™s new in Prismaโ€ with @nikolasburk and me: โœ… Prisma v4.5.0 release โœ… Demo of Prisma with Deno ๐Ÿฆ• โœ… @admnjs Prisma integration with @KStudniarek ๐Ÿšจ Weโ€™re live in 30 minutes! ๐Ÿ‘‰ Join us!

    https://www.youtube.com/watch?v=9RYPERDas90โ–พ

    ๐Ÿคฉ 8
    prisma rainbow 6
    ๐ŸŽ‰ 6
    ๐Ÿฆ• 8
    ๐Ÿš€ 5
    prisma cool 6