Skip to content

Commit

Permalink
Update Prisma to 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Jan 6, 2021
1 parent 019c417 commit 7e29a74
Show file tree
Hide file tree
Showing 26 changed files with 13,386 additions and 11,947 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npm i @prisma/client

> Be aware that `typegraphql-prisma` is designed to work with a selected versions of `prisma`.
>
> Please make sure you use `@prisma/cli` and `@prisma/client` of version matching `~2.13.1`.
> Please make sure you use `@prisma/cli` and `@prisma/client` of version matching `~2.14.0`.
> Otherwise, the runtime check will report an error when you run the generator.
You also need to install the GraphQL JSON scalar library (to support the Prisma `Json` scalar):
Expand Down
41 changes: 23 additions & 18 deletions experiments/generated-schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ enum CategoryScalarFieldEnum {
slug
}

input CategorySlugNumberCompoundUniqueInput {
number: Int!
slug: String!
}

input CategoryWhereInput {
AND: [CategoryWhereInput!]
name: StringFilter
Expand All @@ -86,7 +91,7 @@ input CategoryWhereInput {
}

input CategoryWhereUniqueInput {
slug_number: SlugNumberCompoundUniqueInput
slug_number: CategorySlugNumberCompoundUniqueInput
}

"""User model doc"""
Expand Down Expand Up @@ -524,10 +529,9 @@ input DirectorCreateWithoutMoviesInput {
lastName: String!
}

input DirectorFirstNameDirectorLastNameTitleCompoundUniqueInput {
directorFirstName: String!
directorLastName: String!
title: String!
input DirectorFirstNameLastNameCompoundUniqueInput {
firstName: String!
lastName: String!
}

type DirectorMaxAggregate {
Expand Down Expand Up @@ -594,7 +598,7 @@ input DirectorWhereInput {
}

input DirectorWhereUniqueInput {
firstName_lastName: FirstNameLastNameCompoundUniqueInput
firstName_lastName: DirectorFirstNameLastNameCompoundUniqueInput
}

input EnumPostKindNullableFilter {
Expand All @@ -615,11 +619,6 @@ input EnumRoleFilter {
notIn: [Role!]
}

input FirstNameLastNameCompoundUniqueInput {
firstName: String!
lastName: String!
}

input FloatFieldUpdateOperationsInput {
decrement: Float
divide: Float
Expand Down Expand Up @@ -706,6 +705,12 @@ input MovieCreateWithoutDirectorInput {
title: String!
}

input MovieDirectorFirstNameDirectorLastNameTitleCompoundUniqueInput {
directorFirstName: String!
directorLastName: String!
title: String!
}

input MovieListRelationFilter {
every: MovieWhereInput
none: MovieWhereInput
Expand Down Expand Up @@ -798,7 +803,7 @@ input MovieWhereInput {
}

input MovieWhereUniqueInput {
directorFirstName_directorLastName_title: DirectorFirstNameDirectorLastNameTitleCompoundUniqueInput
directorFirstName_directorLastName_title: MovieDirectorFirstNameDirectorLastNameTitleCompoundUniqueInput
}

type Mutation {
Expand Down Expand Up @@ -954,6 +959,11 @@ input PatientCreateInput {
lastName: String!
}

input PatientFirstNameLastNameCompoundUniqueInput {
firstName: String!
lastName: String!
}

type PatientMaxAggregate {
email: String
firstName: String
Expand Down Expand Up @@ -1000,7 +1010,7 @@ input PatientWhereInput {
}

input PatientWhereUniqueInput {
firstName_lastName: FirstNameLastNameCompoundUniqueInput
firstName_lastName: PatientFirstNameLastNameCompoundUniqueInput
}

type Post {
Expand Down Expand Up @@ -1485,11 +1495,6 @@ enum Role {
USER
}

input SlugNumberCompoundUniqueInput {
number: Int!
slug: String!
}

enum SortOrder {
asc
desc
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": "ts-node --transpile-only ./seed.ts"
},
"dependencies": {
"@prisma/client": "2.13.1",
"@prisma/client": "2.14.0",
"@types/graphql-fields": "^1.3.3",
"apollo-server": "^2.19.1",
"graphql": "^15.4.0",
Expand All @@ -16,9 +16,9 @@
"type-graphql": "1.1.1"
},
"devDependencies": {
"@prisma/cli": "2.13.1",
"@prisma/cli": "2.14.0",
"@types/graphql-type-json": "^0.3.2",
"@types/node": "^14.14.14",
"@types/node": "^14.14.20",
"ts-node": "^9.1.1",
"typescript": "~4.1.3"
}
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: 2.13.1
* Query Engine version: fcbc4bb2d306c86c28014f596b1e8c7980af8bd4
* Prisma Client JS version: 2.14.0
* Query Engine version: 5d491261d382a2a5ffdc71de17072b0e409f1cc1
*/
Prisma.prismaVersion = {
client: "2.13.1",
engine: "fcbc4bb2d306c86c28014f596b1e8c7980af8bd4"
client: "2.14.0",
engine: "5d491261d382a2a5ffdc71de17072b0e409f1cc1"
}

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

0 comments on commit 7e29a74

Please sign in to comment.