Skip to content

Commit

Permalink
Upgrade Prisma to 5.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Aug 7, 2024
1 parent be24776 commit f17288f
Show file tree
Hide file tree
Showing 192 changed files with 11,421 additions and 7,824 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 19.x, 20.x, 21.x]
node-version: [20.x, 21.x, 22.x]

services:
db:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
22
1 change: 1 addition & 0 deletions docs/basics/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ However, it can also generate some resolvers which might be handy especially on
- findMany
- create
- createMany
- createManyAndReturn
- update
- updateMany
- delete
Expand Down
40 changes: 36 additions & 4 deletions experiments/mongodb/generated-schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,13 @@ input CommentWhereInput {
}

input CommentWhereUniqueInput {
AND: [CommentWhereInput!]
NOT: [CommentWhereInput!]
OR: [CommentWhereInput!]
comment: StringFilter
id: String
post: PostRelationFilter
postId: StringFilter
}

input IntNullableFilter {
Expand Down Expand Up @@ -373,7 +379,7 @@ type Post {
}

type PostCount {
comments: Int!
comments(where: CommentWhereInput): Int!
}

type PostCountAggregate {
Expand Down Expand Up @@ -606,10 +612,15 @@ input PostUpdateOneRequiredWithoutCommentsNestedInput {
connect: PostWhereUniqueInput
connectOrCreate: PostCreateOrConnectWithoutCommentsInput
create: PostCreateWithoutCommentsInput
update: PostUpdateWithoutCommentsInput
update: PostUpdateToOneWithWhereWithoutCommentsInput
upsert: PostUpsertWithoutCommentsInput
}

input PostUpdateToOneWithWhereWithoutCommentsInput {
data: PostUpdateWithoutCommentsInput!
where: PostWhereInput
}

input PostUpdateWithWhereUniqueWithoutAuthorInput {
data: PostUpdateWithoutAuthorInput!
where: PostWhereUniqueInput!
Expand Down Expand Up @@ -638,6 +649,7 @@ input PostUpsertWithWhereUniqueWithoutAuthorInput {
input PostUpsertWithoutCommentsInput {
create: PostCreateWithoutCommentsInput!
update: PostUpdateWithoutCommentsInput!
where: PostWhereInput
}

input PostWhereInput {
Expand All @@ -654,8 +666,16 @@ input PostWhereInput {
}

input PostWhereUniqueInput {
AND: [PostWhereInput!]
NOT: [PostWhereInput!]
OR: [PostWhereInput!]
author: UserRelationFilter
authorId: StringFilter
body: StringFilter
comments: CommentListRelationFilter
id: String
slug: String
title: StringFilter
}

type Query {
Expand Down Expand Up @@ -782,7 +802,7 @@ input UserAvgOrderByAggregateInput {
}

type UserCount {
posts: Int!
posts(where: PostWhereInput): Int!
}

type UserCountAggregate {
Expand Down Expand Up @@ -930,10 +950,15 @@ input UserUpdateOneRequiredWithoutPostsNestedInput {
connect: UserWhereUniqueInput
connectOrCreate: UserCreateOrConnectWithoutPostsInput
create: UserCreateWithoutPostsInput
update: UserUpdateWithoutPostsInput
update: UserUpdateToOneWithWhereWithoutPostsInput
upsert: UserUpsertWithoutPostsInput
}

input UserUpdateToOneWithWhereWithoutPostsInput {
data: UserUpdateWithoutPostsInput!
where: UserWhereInput
}

input UserUpdateWithoutPostsInput {
address: UserAddressCreateInput
age: Int
Expand All @@ -943,6 +968,7 @@ input UserUpdateWithoutPostsInput {
input UserUpsertWithoutPostsInput {
create: UserCreateWithoutPostsInput!
update: UserUpdateWithoutPostsInput!
where: UserWhereInput
}

input UserWhereInput {
Expand All @@ -957,6 +983,12 @@ input UserWhereInput {
}

input UserWhereUniqueInput {
AND: [UserWhereInput!]
NOT: [UserWhereInput!]
OR: [UserWhereInput!]
address: UserAddressCompositeFilter
age: IntNullableFilter
email: String
id: String
posts: PostListRelationFilter
}
Loading

0 comments on commit f17288f

Please sign in to comment.