Skip to content

Commit

Permalink
Upgrade Prisma to 3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Feb 25, 2022
1 parent 7f00f41 commit c289de7
Show file tree
Hide file tree
Showing 42 changed files with 10,619 additions and 9,650 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 `~3.9.2`.
Please make sure you use `prisma` and `@prisma/client` of version matching `~3.10.0`.
Otherwise, the runtime check will report an error when you run the generator.
:::

Expand Down
20 changes: 2 additions & 18 deletions experiments/generated-schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -995,23 +995,15 @@ input MainUserCreateInput {
input MainUserCreateManyInput {
accountBalance: Float!
age: Int!
aliases: MainUserCreateManyaliasesInput
aliases: MainUserCreatealiasesInput
amount: Float!
email: String!
firstName: String
grades: MainUserCreateManygradesInput
grades: MainUserCreategradesInput
id: Int
role: Role!
}

input MainUserCreateManyaliasesInput {
set: [String!]!
}

input MainUserCreateManygradesInput {
set: [Int!]!
}

input MainUserCreateNestedOneWithoutEditorPostsInput {
connect: MainUserWhereUniqueInput
connectOrCreate: MainUserCreateOrConnectWithoutEditorPostsInput
Expand Down Expand Up @@ -2289,7 +2281,6 @@ input PostCreateInput {
metadata: JSON!
subtitle: String!
title: String!
updatedAt: DateTime
uuid: String
}

Expand All @@ -2301,7 +2292,6 @@ input PostCreateManyAuthorInput {
metadata: JSON!
subtitle: String!
title: String!
updatedAt: DateTime
uuid: String
}

Expand All @@ -2318,7 +2308,6 @@ input PostCreateManyEditorInput {
metadata: JSON!
subtitle: String!
title: String!
updatedAt: DateTime
uuid: String
}

Expand Down Expand Up @@ -2359,7 +2348,6 @@ input PostCreateWithoutAuthorInput {
metadata: JSON!
subtitle: String!
title: String!
updatedAt: DateTime
uuid: String
}

Expand All @@ -2371,7 +2359,6 @@ input PostCreateWithoutEditorInput {
metadata: JSON!
subtitle: String!
title: String!
updatedAt: DateTime
uuid: String
}

Expand Down Expand Up @@ -2569,7 +2556,6 @@ input PostUpdateManyMutationInput {
metadata: JSON
subtitle: StringFieldUpdateOperationsInput
title: StringFieldUpdateOperationsInput
updatedAt: DateTimeFieldUpdateOperationsInput
uuid: StringFieldUpdateOperationsInput
}

Expand Down Expand Up @@ -2629,7 +2615,6 @@ input PostUpdateWithoutAuthorInput {
metadata: JSON
subtitle: StringFieldUpdateOperationsInput
title: StringFieldUpdateOperationsInput
updatedAt: DateTimeFieldUpdateOperationsInput
uuid: StringFieldUpdateOperationsInput
}

Expand All @@ -2641,7 +2626,6 @@ input PostUpdateWithoutEditorInput {
metadata: JSON
subtitle: StringFieldUpdateOperationsInput
title: StringFieldUpdateOperationsInput
updatedAt: DateTimeFieldUpdateOperationsInput
uuid: StringFieldUpdateOperationsInput
}

Expand Down
74 changes: 37 additions & 37 deletions experiments/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions experiments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"seed": "prisma db seed"
},
"dependencies": {
"@prisma/client": "~3.9.2",
"@prisma/client": "~3.10.0",
"@types/graphql-fields": "^1.3.4",
"apollo-server": "^3.6.3",
"graphql": "^15.8.0",
Expand All @@ -17,10 +17,10 @@
"type-graphql": "1.1.1"
},
"devDependencies": {
"@types/node": "^17.0.17",
"@types/node": "^17.0.21",
"class-validator": "^0.13.2",
"fs-jetpack": "^4.3.1",
"prisma": "~3.9.2",
"prisma": "~3.10.0",
"ts-node": "^10.5.0",
"typescript": "~4.5.5"
},
Expand Down
8 changes: 4 additions & 4 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: 3.9.2
* Query Engine version: bcc2ff906db47790ee902e7bbc76d7ffb1893009
* Prisma Client JS version: 3.10.0
* Query Engine version: 73e60b76d394f8d37d8ebd1f8918c79029f0db86
*/
Prisma.prismaVersion = {
client: "3.9.2",
engine: "bcc2ff906db47790ee902e7bbc76d7ffb1893009"
client: "3.10.0",
engine: "73e60b76d394f8d37d8ebd1f8918c79029f0db86"
}

Prisma.PrismaClientKnownRequestError = () => {
Expand Down
Loading

0 comments on commit c289de7

Please sign in to comment.