Skip to content

Commit

Permalink
update snapshpt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Jul 26, 2024
1 parent 581cd52 commit 25de554
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 0 deletions.
158 changes: 158 additions & 0 deletions packages/plugin-prisma-utils/tests/__snapshots__/codegen.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ input CommentCreateAuthorRelationInput {
create: UserCreateWithoutComments
}
input CommentCreateManyWithoutAuthorInput {
content: String!
createdAt: DateTime
id: Int
postId: Int!
}
input CommentCreateManyWithoutPostInput {
authorId: Int!
content: String!
createdAt: DateTime
id: Int
}
input CommentCreatePostRelationInput {
connect: PostUniqueFilter
create: PostCreateWithoutComments
Expand Down Expand Up @@ -185,6 +199,40 @@ input FindUniqueRelationsCreate {
withUnique_id: String!
}
input FindUniqueRelationsCreateManyWithoutWithCompositeIDInput {
id: String!
withCompositeUnique_a: String!
withCompositeUnique_b: String!
withID_id: String!
withUnique_id: String!
}
input FindUniqueRelationsCreateManyWithoutWithCompositeUniqueInput {
id: String!
withCompositeID_a: String!
withCompositeID_b: String!
withID_id: String!
withUnique_id: String!
}
input FindUniqueRelationsCreateManyWithoutWithIDInput {
id: String!
withCompositeID_a: String!
withCompositeID_b: String!
withCompositeUnique_a: String!
withCompositeUnique_b: String!
withUnique_id: String!
}
input FindUniqueRelationsCreateManyWithoutWithUniqueInput {
id: String!
withCompositeID_a: String!
withCompositeID_b: String!
withCompositeUnique_a: String!
withCompositeUnique_b: String!
withID_id: String!
}
input FindUniqueRelationsCreateWithCompositeIDRelationInput {
connect: WithCompositeIDUniqueFilter
create: WithCompositeIDCreateWithoutFindUniqueRelations
Expand Down Expand Up @@ -431,6 +479,14 @@ input FollowCreateFromRelationInput {
create: UserCreateWithoutFollowing
}
input FollowCreateManyWithoutFromInput {
toId: Int!
}
input FollowCreateManyWithoutToInput {
fromId: Int!
}
input FollowCreateToRelationInput {
connect: UserUniqueFilter
create: UserCreateWithoutFollowers
Expand Down Expand Up @@ -538,6 +594,11 @@ input MediaCreate {
url: String!
}
input MediaCreateManyWithoutUploadedByInput {
id: Int
url: String!
}
input MediaCreatePostsRelationInput {
connect: [PostMediaUniqueFilter!]
create: [PostMediaCreateWithoutMedia!]
Expand Down Expand Up @@ -598,6 +659,7 @@ input MediaUpdate {
input MediaUpdatePostsRelationInput {
connect: [PostMediaUniqueFilter!]
create: [PostMediaCreateWithoutMedia!]
createMany: MediaUpdatePostsRelationInputCreateMany
delete: [PostMediaUniqueFilter!]
deleteMany: [PostMediaWithoutMediaFilter!]
disconnect: [PostMediaUniqueFilter!]
Expand All @@ -606,6 +668,11 @@ input MediaUpdatePostsRelationInput {
updateMany: [MediaUpdatePostsRelationInputUpdateMany!]
}
input MediaUpdatePostsRelationInputCreateMany {
data: [PostMediaCreateManyWithoutMediaInput!]
skipDuplicates: Boolean
}
input MediaUpdatePostsRelationInputUpdate {
data: PostMediaUpdateWithoutMedia
where: PostMediaUniqueFilter
Expand Down Expand Up @@ -694,6 +761,19 @@ input PostCreateCommentsRelationInput {
create: [CommentCreateWithoutPost!]
}
input PostCreateManyWithoutAuthorInput {
categories: [Category!]
content: String
createdAt: DateTime
id: Int
published: Boolean
ratings: [Int!]
tags: [String!]
title: String!
updatedAt: DateTime
views: Int
}
input PostCreateMediaRelationInput {
connect: [PostMediaUniqueFilter!]
create: [PostMediaCreateWithoutPost!]
Expand Down Expand Up @@ -778,6 +858,18 @@ input PostMediaCreate {
postId: Int!
}
input PostMediaCreateManyWithoutMediaInput {
id: Int
order: Int!
postId: Int!
}
input PostMediaCreateManyWithoutPostInput {
id: Int
mediaId: Int!
order: Int!
}
input PostMediaCreateMediaRelationInput {
connect: MediaUniqueFilter
create: MediaCreateWithoutPosts
Expand Down Expand Up @@ -927,6 +1019,7 @@ input PostUpdateAuthorRelationInput {
input PostUpdateCommentsRelationInput {
connect: [CommentUniqueFilter!]
create: [CommentCreateWithoutPost!]
createMany: PostUpdateCommentsRelationInputCreateMany
delete: [CommentUniqueFilter!]
deleteMany: [CommentWithoutPostFilter!]
disconnect: [CommentUniqueFilter!]
Expand All @@ -935,6 +1028,11 @@ input PostUpdateCommentsRelationInput {
updateMany: [PostUpdateCommentsRelationInputUpdateMany!]
}
input PostUpdateCommentsRelationInputCreateMany {
data: [CommentCreateManyWithoutPostInput!]
skipDuplicates: Boolean
}
input PostUpdateCommentsRelationInputUpdate {
data: CommentUpdateWithoutPost
where: CommentUniqueFilter
Expand All @@ -948,6 +1046,7 @@ input PostUpdateCommentsRelationInputUpdateMany {
input PostUpdateMediaRelationInput {
connect: [PostMediaUniqueFilter!]
create: [PostMediaCreateWithoutPost!]
createMany: PostUpdateMediaRelationInputCreateMany
delete: [PostMediaUniqueFilter!]
deleteMany: [PostMediaWithoutPostFilter!]
disconnect: [PostMediaUniqueFilter!]
Expand All @@ -956,6 +1055,11 @@ input PostUpdateMediaRelationInput {
updateMany: [PostUpdateMediaRelationInputUpdateMany!]
}
input PostUpdateMediaRelationInputCreateMany {
data: [PostMediaCreateManyWithoutPostInput!]
skipDuplicates: Boolean
}
input PostUpdateMediaRelationInputUpdate {
data: PostMediaUpdateWithoutPost
where: PostMediaUniqueFilter
Expand Down Expand Up @@ -1309,6 +1413,7 @@ input UserUpdate {
input UserUpdateCommentsRelationInput {
connect: [CommentUniqueFilter!]
create: [CommentCreateWithoutAuthor!]
createMany: UserUpdateCommentsRelationInputCreateMany
delete: [CommentUniqueFilter!]
deleteMany: [CommentWithoutAuthorFilter!]
disconnect: [CommentUniqueFilter!]
Expand All @@ -1317,6 +1422,11 @@ input UserUpdateCommentsRelationInput {
updateMany: [UserUpdateCommentsRelationInputUpdateMany!]
}
input UserUpdateCommentsRelationInputCreateMany {
data: [CommentCreateManyWithoutAuthorInput!]
skipDuplicates: Boolean
}
input UserUpdateCommentsRelationInputUpdate {
data: CommentUpdateWithoutAuthor
where: CommentUniqueFilter
Expand All @@ -1330,6 +1440,7 @@ input UserUpdateCommentsRelationInputUpdateMany {
input UserUpdateFollowersRelationInput {
connect: [FollowUniqueFilter!]
create: [FollowCreateWithoutTo!]
createMany: UserUpdateFollowersRelationInputCreateMany
delete: [FollowUniqueFilter!]
deleteMany: [FollowWithoutToFilter!]
disconnect: [FollowUniqueFilter!]
Expand All @@ -1338,6 +1449,11 @@ input UserUpdateFollowersRelationInput {
updateMany: [UserUpdateFollowersRelationInputUpdateMany!]
}
input UserUpdateFollowersRelationInputCreateMany {
data: [FollowCreateManyWithoutToInput!]
skipDuplicates: Boolean
}
input UserUpdateFollowersRelationInputUpdate {
data: FollowUpdateWithoutTo
where: FollowUniqueFilter
Expand All @@ -1351,6 +1467,7 @@ input UserUpdateFollowersRelationInputUpdateMany {
input UserUpdateFollowingRelationInput {
connect: [FollowUniqueFilter!]
create: [FollowCreateWithoutFrom!]
createMany: UserUpdateFollowingRelationInputCreateMany
delete: [FollowUniqueFilter!]
deleteMany: [FollowWithoutFromFilter!]
disconnect: [FollowUniqueFilter!]
Expand All @@ -1359,6 +1476,11 @@ input UserUpdateFollowingRelationInput {
updateMany: [UserUpdateFollowingRelationInputUpdateMany!]
}
input UserUpdateFollowingRelationInputCreateMany {
data: [FollowCreateManyWithoutFromInput!]
skipDuplicates: Boolean
}
input UserUpdateFollowingRelationInputUpdate {
data: FollowUpdateWithoutFrom
where: FollowUniqueFilter
Expand All @@ -1372,6 +1494,7 @@ input UserUpdateFollowingRelationInputUpdateMany {
input UserUpdateMediaRelationInput {
connect: [MediaUniqueFilter!]
create: [MediaCreateWithoutUploadedBy!]
createMany: UserUpdateMediaRelationInputCreateMany
delete: [MediaUniqueFilter!]
deleteMany: [MediaWithoutUploadedByFilter!]
disconnect: [MediaUniqueFilter!]
Expand All @@ -1380,6 +1503,11 @@ input UserUpdateMediaRelationInput {
updateMany: [UserUpdateMediaRelationInputUpdateMany!]
}
input UserUpdateMediaRelationInputCreateMany {
data: [MediaCreateManyWithoutUploadedByInput!]
skipDuplicates: Boolean
}
input UserUpdateMediaRelationInputUpdate {
data: MediaUpdateWithoutUploadedBy
where: MediaUniqueFilter
Expand All @@ -1393,6 +1521,7 @@ input UserUpdateMediaRelationInputUpdateMany {
input UserUpdatePostsRelationInput {
connect: [PostUniqueFilter!]
create: [PostCreateWithoutAuthor!]
createMany: UserUpdatePostsRelationInputCreateMany
delete: [PostUniqueFilter!]
deleteMany: [PostWithoutAuthorFilter!]
disconnect: [PostUniqueFilter!]
Expand All @@ -1401,6 +1530,11 @@ input UserUpdatePostsRelationInput {
updateMany: [UserUpdatePostsRelationInputUpdateMany!]
}
input UserUpdatePostsRelationInputCreateMany {
data: [PostCreateManyWithoutAuthorInput!]
skipDuplicates: Boolean
}
input UserUpdatePostsRelationInputUpdate {
data: PostUpdateWithoutAuthor
where: PostUniqueFilter
Expand Down Expand Up @@ -1526,6 +1660,7 @@ input WithCompositeIDUpdate {
input WithCompositeIDUpdateFindUniqueRelationsRelationInput {
connect: [FindUniqueRelationsUniqueFilter!]
create: [FindUniqueRelationsCreateWithoutWithCompositeID!]
createMany: WithCompositeIDUpdateFindUniqueRelationsRelationInputCreateMany
delete: [FindUniqueRelationsUniqueFilter!]
deleteMany: [FindUniqueRelationsWithoutWithCompositeIDFilter!]
disconnect: [FindUniqueRelationsUniqueFilter!]
Expand All @@ -1534,6 +1669,11 @@ input WithCompositeIDUpdateFindUniqueRelationsRelationInput {
updateMany: [WithCompositeIDUpdateFindUniqueRelationsRelationInputUpdateMany!]
}
input WithCompositeIDUpdateFindUniqueRelationsRelationInputCreateMany {
data: [FindUniqueRelationsCreateManyWithoutWithCompositeIDInput!]
skipDuplicates: Boolean
}
input WithCompositeIDUpdateFindUniqueRelationsRelationInputUpdate {
data: FindUniqueRelationsUpdateWithoutWithCompositeID
where: FindUniqueRelationsUniqueFilter
Expand Down Expand Up @@ -1597,6 +1737,7 @@ input WithCompositeUniqueUpdate {
input WithCompositeUniqueUpdateFindUniqueRelationsRelationInput {
connect: [FindUniqueRelationsUniqueFilter!]
create: [FindUniqueRelationsCreateWithoutWithCompositeUnique!]
createMany: WithCompositeUniqueUpdateFindUniqueRelationsRelationInputCreateMany
delete: [FindUniqueRelationsUniqueFilter!]
deleteMany: [FindUniqueRelationsWithoutWithCompositeUniqueFilter!]
disconnect: [FindUniqueRelationsUniqueFilter!]
Expand All @@ -1605,6 +1746,11 @@ input WithCompositeUniqueUpdateFindUniqueRelationsRelationInput {
updateMany: [WithCompositeUniqueUpdateFindUniqueRelationsRelationInputUpdateMany!]
}
input WithCompositeUniqueUpdateFindUniqueRelationsRelationInputCreateMany {
data: [FindUniqueRelationsCreateManyWithoutWithCompositeUniqueInput!]
skipDuplicates: Boolean
}
input WithCompositeUniqueUpdateFindUniqueRelationsRelationInputUpdate {
data: FindUniqueRelationsUpdateWithoutWithCompositeUnique
where: FindUniqueRelationsUniqueFilter
Expand Down Expand Up @@ -1657,6 +1803,7 @@ input WithIDUpdate {
input WithIDUpdateFindUniqueRelationsRelationInput {
connect: [FindUniqueRelationsUniqueFilter!]
create: [FindUniqueRelationsCreateWithoutWithID!]
createMany: WithIDUpdateFindUniqueRelationsRelationInputCreateMany
delete: [FindUniqueRelationsUniqueFilter!]
deleteMany: [FindUniqueRelationsWithoutWithIDFilter!]
disconnect: [FindUniqueRelationsUniqueFilter!]
Expand All @@ -1665,6 +1812,11 @@ input WithIDUpdateFindUniqueRelationsRelationInput {
updateMany: [WithIDUpdateFindUniqueRelationsRelationInputUpdateMany!]
}
input WithIDUpdateFindUniqueRelationsRelationInputCreateMany {
data: [FindUniqueRelationsCreateManyWithoutWithIDInput!]
skipDuplicates: Boolean
}
input WithIDUpdateFindUniqueRelationsRelationInputUpdate {
data: FindUniqueRelationsUpdateWithoutWithID
where: FindUniqueRelationsUniqueFilter
Expand Down Expand Up @@ -1715,6 +1867,7 @@ input WithUniqueUpdate {
input WithUniqueUpdateFindUniqueRelationsRelationInput {
connect: [FindUniqueRelationsUniqueFilter!]
create: [FindUniqueRelationsCreateWithoutWithUnique!]
createMany: WithUniqueUpdateFindUniqueRelationsRelationInputCreateMany
delete: [FindUniqueRelationsUniqueFilter!]
deleteMany: [FindUniqueRelationsWithoutWithUniqueFilter!]
disconnect: [FindUniqueRelationsUniqueFilter!]
Expand All @@ -1723,6 +1876,11 @@ input WithUniqueUpdateFindUniqueRelationsRelationInput {
updateMany: [WithUniqueUpdateFindUniqueRelationsRelationInputUpdateMany!]
}
input WithUniqueUpdateFindUniqueRelationsRelationInputCreateMany {
data: [FindUniqueRelationsCreateManyWithoutWithUniqueInput!]
skipDuplicates: Boolean
}
input WithUniqueUpdateFindUniqueRelationsRelationInputUpdate {
data: FindUniqueRelationsUpdateWithoutWithUnique
where: FindUniqueRelationsUniqueFilter
Expand Down
Loading

0 comments on commit 25de554

Please sign in to comment.