PackageTrack

npm · #3659 most downloaded on npm

@prisma/client

7.10.0prisma/prisma

Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.

Release timeline

10653 releases since 2020
20202026

One column per quarter.

Releases

  1. 5.15.0-dev.2622 May 2024pre-release

    Nothing published for this version

  2. 5.15.0-dev.2522 May 2024pre-release

    Nothing published for this version

  3. 5.15.0-dev.2422 May 2024pre-release

    Nothing published for this version

  4. 5.15.0-dev.2322 May 2024pre-release

    Nothing published for this version

  5. 5.15.0-dev.2222 May 2024pre-release

    Nothing published for this version

  6. 5.15.0-dev.2122 May 2024pre-release

    Nothing published for this version

  7. 5.15.0-dev.2021 May 2024pre-release

    Nothing published for this version

  8. 5.15.0-dev.1921 May 2024pre-release

    Nothing published for this version

  9. 5.15.0-dev.1821 May 2024pre-release

    Nothing published for this version

  10. 5.15.0-dev.1717 May 2024pre-release

    Nothing published for this version

  11. 5.15.0-dev.1617 May 2024pre-release

    Nothing published for this version

  12. 5.15.0-dev.1516 May 2024pre-release

    Nothing published for this version

  13. 5.15.0-dev.1416 May 2024pre-release

    Nothing published for this version

  14. 5.15.0-dev.1316 May 2024pre-release

    Nothing published for this version

  15. 5.15.0-dev.1215 May 2024pre-release

    Nothing published for this version

  16. 5.15.0-dev.1115 May 2024pre-release

    Nothing published for this version

  17. 5.15.0-dev.1015 May 2024pre-release

    Nothing published for this version

  18. 5.15.0-dev.915 May 2024pre-release

    Nothing published for this version

  19. 5.15.0-dev.815 May 2024pre-release

    Nothing published for this version

  20. 5.15.0-dev.715 May 2024pre-release

    Nothing published for this version

  21. 5.15.0-dev.615 May 2024pre-release

    Nothing published for this version

  22. 5.15.0-dev.515 May 2024pre-release

    Nothing published for this version

  23. 5.15.0-dev.415 May 2024pre-release

    Nothing published for this version

  24. 5.15.0-dev.315 May 2024pre-release

    Nothing published for this version

  25. 5.15.0-dev.214 May 2024pre-release

    Nothing published for this version

  26. 5.14.014 May 2024
    Release notes

    Today, we are excited to share the 5.14.0 stable release 🎉

    🌟 Help us spread the word about Prisma by starring the repo ☝️ or posting on X about the release. 🌟

    Highlights

    Share your feedback about Prisma ORM

    We want to know how you like working with Prisma ORM in your projects! Please take our 2min survey and let us know what you like or where we can improve 🙏

    createManyAndReturn()

    We’re happy to announce the availability of a new, top-level Prisma Client query: createManyAndReturn(). It works similarly to createMany() but uses a RETURNING clause in the SQL query to retrieve the records that were just created.

    Here’s an example of creating multiple posts and then immediately returning those posts.

    const postBodies = req.json()['posts']
    
    const posts = prisma.post.createManyAndReturn({
      data: postBodies
    });
    
    return posts
    

    Additionally,createManyAndReturn() supports the same options as findMany(), such as the ability to return only specific fields.

    const postBodies = req.json()['posts']
    
    const postTitles = prisma.post.createManyAndReturn({
      data: postBodies,
      select: {
        title: true,
      },
    });
    
    return postTitles
    

    Full documentation for this feature can be found in the Prisma Client API Reference.

    Note: Because createManyAndReturn() uses the RETURNING clause, it is only supported by PostgreSQL, CockroachDB, and SQLite databases. At this time, relationLoadStrategy: join is not supported in createManyAndReturn() queries.

    MongoDB performance improvements

    Previously, Prisma ORM suffered from performance issues when using the in operator or when including related models in queries against a MongoDB database. These queries were translated by the Prisma query engine in such a way that indexes were skipped and collection scans were used, leading to slower queries especially on large datasets.

    With 5.14.0, Prisma ORM now rewrites queries to use a combination of $or and $eq operators, leading to dramatic performance increases for queries that include in operators or relation loading.

    Fixes and improvements

    Prisma Client

    Prisma Migrate

    Language tools (e.g. VS Code)

    Company news

    Prisma Changelog

    Curious about all things Prisma? Be sure to check out the Prisma Changelog for updates across Prisma's products, including ORM, Accelerate, and Pulse!

    New product announcement: Prisma Optimize

    With this release, we are excited to introduce a new Prisma product. We’re calling it “Optimize” because that’s what it does! Let your favorite ORM also help you debug the performance of your application.

    Check out our announcement blog post for more details, including a demo video.

    Credits

    Huge thanks to @pranayat, @yubrot, @skyzh, @anuraaga, @gutyerrez, @avallete, @ceddy4395, @Kayoshi-dev for helping!

    Open source →
  27. 5.14.0-integration-static-wasm-worker-loader.513 May 2024pre-release

    Nothing published for this version

  28. 5.14.0-integration-static-wasm-worker-loader.48 May 2024pre-release

    Nothing published for this version

  29. 5.14.0-integration-static-wasm-worker-loader.330 Apr 2024pre-release

    Nothing published for this version

  30. 5.14.0-integration-static-wasm-worker-loader.230 Apr 2024pre-release

    Nothing published for this version

  31. 5.14.0-integration-static-wasm-worker-loader.130 Apr 2024pre-release

    Nothing published for this version

  32. 5.14.0-integration-schema-files-resolver.1014 May 2024pre-release

    Nothing published for this version

  33. 5.14.0-integration-schema-files-resolver.914 May 2024pre-release

    Nothing published for this version

  34. 5.14.0-integration-schema-files-resolver.810 May 2024pre-release

    Nothing published for this version

  35. 5.14.0-integration-schema-files-resolver.710 May 2024pre-release

    Nothing published for this version

  36. 5.14.0-integration-schema-files-resolver.68 May 2024pre-release

    Nothing published for this version

  37. 5.14.0-integration-schema-files-resolver.58 May 2024pre-release

    Nothing published for this version

  38. 5.14.0-integration-schema-files-resolver.48 May 2024pre-release

    Nothing published for this version

  39. 5.14.0-integration-schema-files-resolver.37 May 2024pre-release

    Nothing published for this version

  40. 5.14.0-integration-schema-files-resolver.27 May 2024pre-release

    Nothing published for this version

  41. 5.14.0-integration-schema-files-resolver.16 May 2024pre-release

    Nothing published for this version

  42. 5.14.0-integration-engines-5-14-0-26-text-comp-multi-20f7cb6cf71d1ee66be7363748ca983d326e9db1.114 May 2024pre-release

    Nothing published for this version

  43. 5.14.0-integration-engines-5-14-0-22-integration-rust-1-78-wasm-fc926224322c04c61c76032c9985a1d4fdfee13f.210 May 2024pre-release

    Nothing published for this version

  44. 5.14.0-integration-engines-5-14-0-22-integration-rust-1-78-wasm-fc926224322c04c61c76032c9985a1d4fdfee13f.110 May 2024pre-release

    Nothing published for this version

  45. 5.14.0-integration-engines-5-14-0-19-fix-ds-url-rn-03c57ba9ba8eea9dfcf11c5382fdb6822d5aa3d2.110 May 2024pre-release

    Nothing published for this version

  46. 5.14.0-integration-engines-5-14-0-10-feat-create-many-and-return-31c187d29db487fb54d6bb593a851d2f9e5687a6.22 May 2024pre-release

    Nothing published for this version

  47. 5.14.0-integration-engines-5-14-0-10-feat-create-many-and-return-31c187d29db487fb54d6bb593a851d2f9e5687a6.12 May 2024pre-release

    Nothing published for this version

  48. 5.14.0-integration-engines-5-14-0-1-integration-vitess-constraint-fix-ca251465b6b966a5b9f61c3a8077ef99275ca330.223 Apr 2024pre-release

    Nothing published for this version

  49. 5.14.0-integration-engines-5-14-0-1-integration-vitess-constraint-fix-ca251465b6b966a5b9f61c3a8077ef99275ca330.123 Apr 2024pre-release

    Nothing published for this version

  50. 5.14.0-dev.7714 May 2024pre-release

    Nothing published for this version

  51. 5.14.0-dev.7613 May 2024pre-release

    Nothing published for this version

  52. 5.14.0-dev.7513 May 2024pre-release

    Nothing published for this version

  53. 5.14.0-dev.7413 May 2024pre-release

    Nothing published for this version

  54. 5.14.0-dev.7213 May 2024pre-release

    Nothing published for this version

  55. 5.14.0-dev.7113 May 2024pre-release

    Nothing published for this version

  56. 5.14.0-dev.7013 May 2024pre-release

    Nothing published for this version

  57. 5.14.0-dev.6913 May 2024pre-release

    Nothing published for this version

  58. 5.14.0-dev.6813 May 2024pre-release

    Nothing published for this version

  59. 5.14.0-dev.6710 May 2024pre-release

    Nothing published for this version

  60. 5.14.0-dev.6610 May 2024pre-release

    Nothing published for this version