build(deps): bump prisma from 4.8.1 to 5.13.0
Bumps prisma from 4.8.1 to 5.13.0.
Release notes
Sourced from prisma's releases.
5.13.0
Today, we are excited to share the
5.13.0stable release 🎉🌟 Help us spread the word about Prisma by starring the repo or posting on X about the release.
Highlights
omitfields from Prisma Client queries (Preview)We’re excited to announce Preview support for the
omitoption within the Prisma Client query options. The highly-requestedomitfeature now allows you to exclude fields that you don’t want to retrieve from the database on a per-query basis.By default, when a query returns records, the result includes all scalar fields of the models defined in the Prisma schema.
selectcan be used to return specific fields, whileomitcan now be used to exclude specific fields.omitlives at the same API level and works on all of the same Prisma Client model queries asselect. Note, however, thatomitandselectare mutually exclusive. In other words, you can’t use both in the same query.To get started using
omit, enable theomitApiPreview feature in your Prisma schema:// schema.prisma generator client { provider = "prisma-client-js" previewFeatures = ["omitApi"] }Be sure to re-generate Prisma Client afterwards:
npx prisma generateHere is an example of using
omit:// Includes all fields except password await prisma.user.findMany({ omit: { password: true }, })Here is an example of using
omitwithinclude:// Includes all user fields except user's password and title of user's posts await prisma.user.findMany({ omit: { password: true }, include: { posts: { </tr></table>
... (truncated)
Commits
f73ba0fchore: new promo message in main help (#23918)2c2e484chore(deps): update dependency global-dirs to v4 (#23578)523f386chore(deps): update definitelytyped (#23800)89dda02test: Fix jest snapshot drifts (#23735)1a4f361perf(cli): CLI startup time improvement (#23622)c93714afix(migrate): fix --from/to-local-d1 & --local-d1 on Windows (#23700) #23725 ...cb9ce14chore(deps): update studio to 0.500.0 (#23686)6e3b532chore(deps): update dependency ts-pattern to v5.1.0 (#23677)5d6f5f4chore(deps): update devdependencies patch (non-major) (#23552)891d47bchore(deps): update dependency esbuild to v0.20.2 (#23551)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)