Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 6, 2021

Bumps @prisma/client from 2.14.0 to 3.2.0.

Release notes

Sourced from @​prisma/client's releases.

3.2.0

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

🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟 

Major improvements & new features

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 manual changes to 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:

const userWithPostsCount = await prisma.user.findMany({
  include: {
    _count: {
      select: { posts: true },
    },
  },
})
// => [
//      {
//        email: "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.

Fixes and improvements

Prisma Migrate

... (truncated)

Commits
  • fe51416 fix(dbpull): throw an error if reintrospecting mongodb (#9588)
  • 4d3cf5c chore(deps): update engines to 3.2.0-34.afdab2f10860244038c4e32458134112852d4...
  • 6388fc8 fix(migrate): remove seed message for migrate reset closes #9203 (#9586)
  • 94d757e chore(deps): update engines to 3.2.0-33.6fc86f06224ae1e3e7cc456513a0fed2e24b0...
  • e5c6fbd fix(generation): prevent finding already found paths (#8702)
  • cbbff4f feat(dbpull): MongoDB (#9556)
  • 6ff629a chore(deps): update engines to 3.2.0-32.a153cf0caf0e5e24b69198dcdc040568256a1...
  • 2a85d2e chore(deps): update engines to 3.2.0-31.36a9b956e3869c2d20311369e6fe5aec64d5a...
  • ad1c4e1 chore(deps): update engines to 3.2.0-30.1ad68fe5b5d41676c33f9f58ff51739e4ea6c...
  • 6e681d3 chore(deps): update engines to 3.2.0-28.c53b44e5f16eb1a2de6ccf122e5dda804e198...
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by prismabot, a new releaser for @​prisma/client since your current version.


Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@prisma/client](https://github.com/prisma/prisma) from 2.14.0 to 3.2.0.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Changelog](https://github.com/prisma/prisma/blob/main/docs/releases.md)
- [Commits](prisma/prisma@2.14.0...3.2.0)

---
updated-dependencies:
- dependency-name: "@prisma/client"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 6, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 11, 2021

Superseded by #1846.

@dependabot dependabot bot closed this Oct 11, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/prisma/client-3.2.0 branch October 11, 2021 21:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants