Skip to content

Conversation

@dependabot
Copy link

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

Bumps @prisma/client from 2.30.3 to 3.2.1.

Release notes

Sourced from @​prisma/client's releases.

3.2.1

Today, we are issuing the 3.2.1 patch release.

Fixes

Prisma Client

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 }
//      }
</tr></table>

... (truncated)

Commits
  • 13e522e ci(publish): take major version into account for calculating patch version (#...
  • 1626cc7 fix: bump engines to 3.2.1-1.b71d8cb16c4ddc7e3e9821f42fd09b0f82d7934c
  • 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...
  • Additional commits viewable in compare view

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.30.3 to 3.2.1.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](prisma/prisma@2.30.3...3.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 14, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 20, 2021

Superseded by #2.

@dependabot dependabot bot closed this Oct 20, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/prisma/client-3.2.1 branch October 20, 2021 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant