Prisma: 2.0.0-beta.9 Release

Release date:
June 8, 2020
Previous version:
2.0.0-beta.8 (released June 3, 2020)
Magnitude:
1,103 Diff Delta
Contributors:
3 total committers
Data confidence:
Commits:

27 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored June 5, 2020
Authored June 5, 2020
Authored June 5, 2020
Authored June 5, 2020
Authored June 8, 2020
Authored June 8, 2020
Authored June 8, 2020
Authored June 8, 2020

Top Contributors in 2.0.0-beta.9

timsuchanek
Jolg42
mhwelander

Directory Browser for 2.0.0-beta.9

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Today, we are issuing the ninth Beta release: 2.0.0-beta.9 (short: beta.9).

Enforcing arrays in OR

We used to allow this syntax: ts const orIncorrect = await prisma.post.findMany({ orderBy: { id: 'asc' }, where: { OR: { title: { equals: "Prisma makes databases easy" }, authorId: { equals: 2 } } } }); However, the thing that we want is this: ts const orCorrect = await prisma.post.findMany({ orderBy: { id: 'asc' }, where: { OR: [{ title: { equals: "Prisma makes databases easy" }, }, { authorId: { equals: 2 } }] } })

So only the array syntax makes sense, therefore we also only allow that from now on.

Fixes and improvements

prisma

prisma-client-js

vscode

prisma-engines

Credits

Huge thanks to @Sytten for helping!