Skip to content

Commit f17288f

Browse files
committed
Upgrade Prisma to 5.18.0
1 parent be24776 commit f17288f

192 files changed

Lines changed: 11421 additions & 7824 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [18.x, 19.x, 20.x, 21.x]
17+
node-version: [20.x, 21.x, 22.x]
1818

1919
services:
2020
db:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

docs/basics/usage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ However, it can also generate some resolvers which might be handy especially on
108108
- findMany
109109
- create
110110
- createMany
111+
- createManyAndReturn
111112
- update
112113
- updateMany
113114
- delete

experiments/mongodb/generated-schema.graphql

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,13 @@ input CommentWhereInput {
222222
}
223223

224224
input CommentWhereUniqueInput {
225+
AND: [CommentWhereInput!]
226+
NOT: [CommentWhereInput!]
227+
OR: [CommentWhereInput!]
228+
comment: StringFilter
225229
id: String
230+
post: PostRelationFilter
231+
postId: StringFilter
226232
}
227233

228234
input IntNullableFilter {
@@ -373,7 +379,7 @@ type Post {
373379
}
374380

375381
type PostCount {
376-
comments: Int!
382+
comments(where: CommentWhereInput): Int!
377383
}
378384

379385
type PostCountAggregate {
@@ -606,10 +612,15 @@ input PostUpdateOneRequiredWithoutCommentsNestedInput {
606612
connect: PostWhereUniqueInput
607613
connectOrCreate: PostCreateOrConnectWithoutCommentsInput
608614
create: PostCreateWithoutCommentsInput
609-
update: PostUpdateWithoutCommentsInput
615+
update: PostUpdateToOneWithWhereWithoutCommentsInput
610616
upsert: PostUpsertWithoutCommentsInput
611617
}
612618

619+
input PostUpdateToOneWithWhereWithoutCommentsInput {
620+
data: PostUpdateWithoutCommentsInput!
621+
where: PostWhereInput
622+
}
623+
613624
input PostUpdateWithWhereUniqueWithoutAuthorInput {
614625
data: PostUpdateWithoutAuthorInput!
615626
where: PostWhereUniqueInput!
@@ -638,6 +649,7 @@ input PostUpsertWithWhereUniqueWithoutAuthorInput {
638649
input PostUpsertWithoutCommentsInput {
639650
create: PostCreateWithoutCommentsInput!
640651
update: PostUpdateWithoutCommentsInput!
652+
where: PostWhereInput
641653
}
642654

643655
input PostWhereInput {
@@ -654,8 +666,16 @@ input PostWhereInput {
654666
}
655667

656668
input PostWhereUniqueInput {
669+
AND: [PostWhereInput!]
670+
NOT: [PostWhereInput!]
671+
OR: [PostWhereInput!]
672+
author: UserRelationFilter
673+
authorId: StringFilter
674+
body: StringFilter
675+
comments: CommentListRelationFilter
657676
id: String
658677
slug: String
678+
title: StringFilter
659679
}
660680

661681
type Query {
@@ -782,7 +802,7 @@ input UserAvgOrderByAggregateInput {
782802
}
783803

784804
type UserCount {
785-
posts: Int!
805+
posts(where: PostWhereInput): Int!
786806
}
787807

788808
type UserCountAggregate {
@@ -930,10 +950,15 @@ input UserUpdateOneRequiredWithoutPostsNestedInput {
930950
connect: UserWhereUniqueInput
931951
connectOrCreate: UserCreateOrConnectWithoutPostsInput
932952
create: UserCreateWithoutPostsInput
933-
update: UserUpdateWithoutPostsInput
953+
update: UserUpdateToOneWithWhereWithoutPostsInput
934954
upsert: UserUpsertWithoutPostsInput
935955
}
936956

957+
input UserUpdateToOneWithWhereWithoutPostsInput {
958+
data: UserUpdateWithoutPostsInput!
959+
where: UserWhereInput
960+
}
961+
937962
input UserUpdateWithoutPostsInput {
938963
address: UserAddressCreateInput
939964
age: Int
@@ -943,6 +968,7 @@ input UserUpdateWithoutPostsInput {
943968
input UserUpsertWithoutPostsInput {
944969
create: UserCreateWithoutPostsInput!
945970
update: UserUpdateWithoutPostsInput!
971+
where: UserWhereInput
946972
}
947973

948974
input UserWhereInput {
@@ -957,6 +983,12 @@ input UserWhereInput {
957983
}
958984

959985
input UserWhereUniqueInput {
986+
AND: [UserWhereInput!]
987+
NOT: [UserWhereInput!]
988+
OR: [UserWhereInput!]
989+
address: UserAddressCompositeFilter
990+
age: IntNullableFilter
960991
email: String
961992
id: String
993+
posts: PostListRelationFilter
962994
}

0 commit comments

Comments
 (0)