Skip to content

Commit

Permalink
Update Prisma to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Sep 8, 2021
1 parent e7a1184 commit 35c97f9
Show file tree
Hide file tree
Showing 48 changed files with 7,963 additions and 10,974 deletions.
2 changes: 1 addition & 1 deletion docs/basics/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ npm i @prisma/client
:::caution
Be aware that `typegraphql-prisma` is designed to work with a selected versions of `prisma`.

Please make sure you use `prisma` and `@prisma/client` of version matching `~2.30.0`.
Please make sure you use `prisma` and `@prisma/client` of version matching `~3.0.1`.
Otherwise, the runtime check will report an error when you run the generator.
:::

Expand Down
334 changes: 143 additions & 191 deletions experiments/package-lock.json

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions experiments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@
"scripts": {
"start": "ts-node --transpile-only ./index.ts",
"generate": "prisma generate",
"seed": "prisma db seed --preview-feature"
"seed": "prisma db seed"
},
"dependencies": {
"@prisma/client": "~2.30.0",
"@prisma/client": "~3.0.1",
"@types/graphql-fields": "^1.3.4",
"apollo-server": "^3.2.0",
"graphql": "^15.5.1",
"apollo-server": "^3.3.0",
"graphql": "^15.5.3",
"graphql-fields": "^2.0.3",
"graphql-scalars": "^1.10.0",
"graphql-scalars": "^1.10.1",
"reflect-metadata": "^0.1.13",
"type-graphql": "1.1.1"
},
"devDependencies": {
"@types/node": "^16.7.1",
"@types/node": "^16.7.13",
"class-validator": "^0.13.1",
"prisma": "~2.30.0",
"prisma": "~3.0.1",
"ts-node": "^10.2.1",
"typescript": "~4.3.5"
"typescript": "~4.4.2"
},
"prisma": {
"seed": "ts-node ./prisma/seed.ts"
}
}
26 changes: 21 additions & 5 deletions experiments/prisma/generated/client/index-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const Prisma = {}
exports.Prisma = Prisma

/**
* Prisma Client JS version: 2.30.0
* Query Engine version: 60b19f4a1de4fe95741da371b4c44a92f4d1adcb
* Prisma Client JS version: 3.0.1
* Query Engine version: 2452cc6313d52b8b9a96999ac0e974d0aedf88db
*/
Prisma.prismaVersion = {
client: "2.30.0",
engine: "60b19f4a1de4fe95741da371b4c44a92f4d1adcb"
client: "3.0.1",
engine: "2452cc6313d52b8b9a96999ac0e974d0aedf88db"
}

Prisma.PrismaClientKnownRequestError = () => {
Expand Down Expand Up @@ -44,7 +44,6 @@ Prisma.Decimal = Decimal
/**
* Re-export of sql-template-tag
*/

Prisma.sql = () => {
throw new Error(`sqltag is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
Expand All @@ -63,6 +62,13 @@ In case this error is unexpected for you, please report it in https://github.com
)}
Prisma.validator = () => (val) => val

/**
* Shorthand utilities for JSON filtering
*/
Prisma.DbNull = 'DbNull'
Prisma.JsonNull = 'JsonNull'
Prisma.AnyNull = 'AnyNull'

/**
* Enums
*/
Expand Down Expand Up @@ -142,10 +148,20 @@ exports.Prisma.SortOrder = makeEnum({
desc: 'desc'
});

exports.Prisma.JsonNullValueInput = makeEnum({
JsonNull: 'JsonNull'
});

exports.Prisma.QueryMode = makeEnum({
default: 'default',
insensitive: 'insensitive'
});

exports.Prisma.JsonNullValueFilter = makeEnum({
DbNull: 'DbNull',
JsonNull: 'JsonNull',
AnyNull: 'AnyNull'
});
exports.Role = makeEnum({
USER: 'USER',
ADMIN: 'ADMIN'
Expand Down
Loading

0 comments on commit 35c97f9

Please sign in to comment.