From e488da5c747023ebce2d428c09eb6af90f6d62c8 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 22 May 2022 21:28:05 +0000 Subject: [PATCH 1/3] chore(release): 15.3.3 [skip ci] ### [15.3.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.3.2...v15.3.3) (2022-05-22) ### Bug Fixes * No atomic operations for scalar input list ([e55767b](https://github.com/unlight/nestjs-graphql-prisma/commit/e55767b37ba2148453ef3bc9d6a0ff580e588cba)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18a63acc..734cc924 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +### [15.3.3](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.3.2...v15.3.3) (2022-05-22) + + +### Bug Fixes + +* No atomic operations for scalar input list ([e55767b](https://github.com/unlight/nestjs-graphql-prisma/commit/e55767b37ba2148453ef3bc9d6a0ff580e588cba)) + ### [15.3.2](https://github.com/unlight/nestjs-graphql-prisma/compare/v15.3.1...v15.3.2) (2022-05-22) From 05aa940e782af579d88aca39a0cf34abeee84d80 Mon Sep 17 00:00:00 2001 From: Roman_Vasilev Date: Wed, 25 May 2022 12:28:15 +0400 Subject: [PATCH 2/3] docs: Update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ddfe4ae9..bf56985d 100644 --- a/README.md +++ b/README.md @@ -703,6 +703,7 @@ export class User {} ## Similar Projects +- https://github.com/jasonraimondi/prisma-generator-nestjs-graphql - https://github.com/omar-dulaimi/prisma-class-validator-generator - https://github.com/kimjbstar/prisma-class-generator - https://github.com/odroe/nest-gql-mix From cf5763d2c2eca4697aeced380f806e4630820327 Mon Sep 17 00:00:00 2001 From: labithiotis Date: Thu, 30 Jun 2022 21:18:51 +0100 Subject: [PATCH 3/3] chore(dep): Update to prisma 4 --- ...pdate-many-without-author-nested.input.ts} | 2 +- ...many-without-favorited-by-nested.input.ts} | 2 +- ...-update-many-without-tags-nested.input.ts} | 2 +- ...e-unchecked-update-without-author.input.ts | 22 ++++--- ...unchecked-update-without-comments.input.ts | 16 +++-- ...ecked-update-without-favorited-by.input.ts | 12 ++-- ...cle-unchecked-update-without-tags.input.ts | 16 +++-- .../article/article-unchecked-update.input.ts | 22 ++++--- ...pdate-many-without-author-nested.input.ts} | 2 +- ...many-without-favorited-by-nested.input.ts} | 2 +- ...-update-many-without-tags-nested.input.ts} | 2 +- ...date-one-without-comments-nested.input.ts} | 2 +- .../article-update-without-author.input.ts | 20 +++--- .../article-update-without-comments.input.ts | 22 +++---- ...ticle-update-without-favorited-by.input.ts | 20 +++--- .../article-update-without-tags.input.ts | 22 +++---- @generated/article/article-update.input.ts | 28 ++++---- ...date-many-without-article-nested.input.ts} | 2 +- ...pdate-many-without-author-nested.input.ts} | 2 +- ...date-many-without-article-nested.input.ts} | 2 +- ...pdate-many-without-author-nested.input.ts} | 2 +- .../comment-update-without-article.input.ts | 8 +-- .../comment-update-without-author.input.ts | 6 +- @generated/comment/comment-update.input.ts | 14 ++-- ...d-update-one-without-user-nested.input.ts} | 2 +- ...e-update-one-without-user-nested.input.ts} | 2 +- @generated/profile/profile-update.input.ts | 8 +-- ...ate-many-without-articles-nested.input.ts} | 2 +- @generated/tag/tag-unchecked-update.input.ts | 6 +- ...ate-many-without-articles-nested.input.ts} | 2 +- @generated/tag/tag-update.input.ts | 6 +- ...without-favorite-articles-nested.input.ts} | 2 +- ...ate-many-without-followers-nested.input.ts | 53 +++++++++++++++ ...ked-update-many-without-followers.input.ts | 64 ++++++++----------- ...ate-many-without-following-nested.input.ts | 53 +++++++++++++++ ...ked-update-many-without-following.input.ts | 64 ++++++++----------- ...unchecked-update-without-articles.input.ts | 36 ++++++----- ...unchecked-update-without-comments.input.ts | 36 ++++++----- ...-update-without-favorite-articles.input.ts | 34 +++++----- ...nchecked-update-without-followers.input.ts | 34 +++++----- ...nchecked-update-without-following.input.ts | 34 +++++----- ...-unchecked-update-without-profile.input.ts | 36 ++++++----- .../user/user-unchecked-update.input.ts | 42 ++++++------ ...without-favorite-articles-nested.input.ts} | 2 +- ...te-many-without-followers-nested.input.ts} | 2 +- ...te-many-without-following-nested.input.ts} | 2 +- ...required-without-articles-nested.input.ts} | 2 +- ...required-without-comments-nested.input.ts} | 2 +- ...-required-without-profile-nested.input.ts} | 2 +- .../user-update-without-articles.input.ts | 34 +++++----- .../user-update-without-comments.input.ts | 34 +++++----- ...-update-without-favorite-articles.input.ts | 34 +++++----- .../user-update-without-followers.input.ts | 32 +++++----- .../user-update-without-following.input.ts | 32 +++++----- .../user/user-update-without-profile.input.ts | 34 +++++----- @generated/user/user-update.input.ts | 40 ++++++------ package.json | 6 +- prisma/schema.prisma | 10 +-- src/test/decimal.spec.ts | 6 +- src/test/generate.spec.ts | 8 ++- src/test/test-generate.ts | 2 +- 61 files changed, 581 insertions(+), 469 deletions(-) rename @generated/article/{article-unchecked-update-many-without-author.input.ts => article-unchecked-update-many-without-author-nested.input.ts} (97%) rename @generated/article/{article-unchecked-update-many-without-favorited-by.input.ts => article-unchecked-update-many-without-favorited-by-nested.input.ts} (97%) rename @generated/article/{article-unchecked-update-many-without-tags.input.ts => article-unchecked-update-many-without-tags-nested.input.ts} (97%) rename @generated/article/{article-update-many-without-author.input.ts => article-update-many-without-author-nested.input.ts} (98%) rename @generated/article/{article-update-many-without-favorited-by.input.ts => article-update-many-without-favorited-by-nested.input.ts} (97%) rename @generated/article/{article-update-many-without-tags.input.ts => article-update-many-without-tags-nested.input.ts} (97%) rename @generated/article/{article-update-one-without-comments.input.ts => article-update-one-without-comments-nested.input.ts} (96%) rename @generated/comment/{comment-unchecked-update-many-without-article.input.ts => comment-unchecked-update-many-without-article-nested.input.ts} (97%) rename @generated/comment/{comment-unchecked-update-many-without-author.input.ts => comment-unchecked-update-many-without-author-nested.input.ts} (97%) rename @generated/comment/{comment-update-many-without-article.input.ts => comment-update-many-without-article-nested.input.ts} (98%) rename @generated/comment/{comment-update-many-without-author.input.ts => comment-update-many-without-author-nested.input.ts} (98%) rename @generated/profile/{profile-unchecked-update-one-without-user.input.ts => profile-unchecked-update-one-without-user-nested.input.ts} (95%) rename @generated/profile/{profile-update-one-without-user.input.ts => profile-update-one-without-user-nested.input.ts} (96%) rename @generated/tag/{tag-unchecked-update-many-without-articles.input.ts => tag-unchecked-update-many-without-articles-nested.input.ts} (97%) rename @generated/tag/{tag-update-many-without-articles.input.ts => tag-update-many-without-articles-nested.input.ts} (97%) rename @generated/user/{user-unchecked-update-many-without-favorite-articles.input.ts => user-unchecked-update-many-without-favorite-articles-nested.input.ts} (97%) create mode 100644 @generated/user/user-unchecked-update-many-without-followers-nested.input.ts create mode 100644 @generated/user/user-unchecked-update-many-without-following-nested.input.ts rename @generated/user/{user-update-many-without-favorite-articles.input.ts => user-update-many-without-favorite-articles-nested.input.ts} (97%) rename @generated/user/{user-update-many-without-followers.input.ts => user-update-many-without-followers-nested.input.ts} (97%) rename @generated/user/{user-update-many-without-following.input.ts => user-update-many-without-following-nested.input.ts} (97%) rename @generated/user/{user-update-one-required-without-articles.input.ts => user-update-one-required-without-articles-nested.input.ts} (95%) rename @generated/user/{user-update-one-required-without-comments.input.ts => user-update-one-required-without-comments-nested.input.ts} (95%) rename @generated/user/{user-update-one-required-without-profile.input.ts => user-update-one-required-without-profile-nested.input.ts} (95%) diff --git a/@generated/article/article-unchecked-update-many-without-author.input.ts b/@generated/article/article-unchecked-update-many-without-author-nested.input.ts similarity index 97% rename from @generated/article/article-unchecked-update-many-without-author.input.ts rename to @generated/article/article-unchecked-update-many-without-author-nested.input.ts index 7e978b51..e1490086 100644 --- a/@generated/article/article-unchecked-update-many-without-author.input.ts +++ b/@generated/article/article-unchecked-update-many-without-author-nested.input.ts @@ -11,7 +11,7 @@ import { ArticleUpdateManyWithWhereWithoutAuthorInput } from './article-update-m import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() -export class ArticleUncheckedUpdateManyWithoutAuthorInput { +export class ArticleUncheckedUpdateManyWithoutAuthorNestedInput { @Field(() => [ArticleCreateWithoutAuthorInput], { nullable: true }) @Type(() => ArticleCreateWithoutAuthorInput) create?: Array; diff --git a/@generated/article/article-unchecked-update-many-without-favorited-by.input.ts b/@generated/article/article-unchecked-update-many-without-favorited-by-nested.input.ts similarity index 97% rename from @generated/article/article-unchecked-update-many-without-favorited-by.input.ts rename to @generated/article/article-unchecked-update-many-without-favorited-by-nested.input.ts index 4dc5f695..300b57db 100644 --- a/@generated/article/article-unchecked-update-many-without-favorited-by.input.ts +++ b/@generated/article/article-unchecked-update-many-without-favorited-by-nested.input.ts @@ -10,7 +10,7 @@ import { ArticleUpdateManyWithWhereWithoutFavoritedByInput } from './article-upd import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() -export class ArticleUncheckedUpdateManyWithoutFavoritedByInput { +export class ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput { @Field(() => [ArticleCreateWithoutFavoritedByInput], { nullable: true }) @Type(() => ArticleCreateWithoutFavoritedByInput) create?: Array; diff --git a/@generated/article/article-unchecked-update-many-without-tags.input.ts b/@generated/article/article-unchecked-update-many-without-tags-nested.input.ts similarity index 97% rename from @generated/article/article-unchecked-update-many-without-tags.input.ts rename to @generated/article/article-unchecked-update-many-without-tags-nested.input.ts index ac813f70..64c336b7 100644 --- a/@generated/article/article-unchecked-update-many-without-tags.input.ts +++ b/@generated/article/article-unchecked-update-many-without-tags-nested.input.ts @@ -10,7 +10,7 @@ import { ArticleUpdateManyWithWhereWithoutTagsInput } from './article-update-man import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() -export class ArticleUncheckedUpdateManyWithoutTagsInput { +export class ArticleUncheckedUpdateManyWithoutTagsNestedInput { @Field(() => [ArticleCreateWithoutTagsInput], { nullable: true }) @Type(() => ArticleCreateWithoutTagsInput) create?: Array; diff --git a/@generated/article/article-unchecked-update-without-author.input.ts b/@generated/article/article-unchecked-update-without-author.input.ts index 4a7d608a..f362d103 100644 --- a/@generated/article/article-unchecked-update-without-author.input.ts +++ b/@generated/article/article-unchecked-update-without-author.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { TagUncheckedUpdateManyWithoutArticlesInput } from '../tag/tag-unchecked-update-many-without-articles.input'; +import { TagUncheckedUpdateManyWithoutArticlesNestedInput } from '../tag/tag-unchecked-update-many-without-articles-nested.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFavoriteArticlesInput } from '../user/user-unchecked-update-many-without-favorite-articles.input'; +import { UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-unchecked-update-many-without-favorite-articles-nested.input'; import { Type } from 'class-transformer'; -import { CommentUncheckedUpdateManyWithoutArticleInput } from '../comment/comment-unchecked-update-many-without-article.input'; +import { CommentUncheckedUpdateManyWithoutArticleNestedInput } from '../comment/comment-unchecked-update-many-without-article-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -26,8 +26,8 @@ export class ArticleUncheckedUpdateWithoutAuthorInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => TagUncheckedUpdateManyWithoutArticlesInput, { nullable: true }) - tags?: TagUncheckedUpdateManyWithoutArticlesInput; + @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, { nullable: true }) + tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) createdAt?: DateTimeFieldUpdateOperationsInput; @@ -38,12 +38,14 @@ export class ArticleUncheckedUpdateWithoutAuthorInput { @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesInput; + @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, { + nullable: true, + }) + @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutArticleInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutArticleInput; + @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-unchecked-update-without-comments.input.ts b/@generated/article/article-unchecked-update-without-comments.input.ts index 0e924427..5f32cddf 100644 --- a/@generated/article/article-unchecked-update-without-comments.input.ts +++ b/@generated/article/article-unchecked-update-without-comments.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { TagUncheckedUpdateManyWithoutArticlesInput } from '../tag/tag-unchecked-update-many-without-articles.input'; +import { TagUncheckedUpdateManyWithoutArticlesNestedInput } from '../tag/tag-unchecked-update-many-without-articles-nested.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFavoriteArticlesInput } from '../user/user-unchecked-update-many-without-favorite-articles.input'; +import { UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-unchecked-update-many-without-favorite-articles-nested.input'; import { Type } from 'class-transformer'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @@ -25,8 +25,8 @@ export class ArticleUncheckedUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => TagUncheckedUpdateManyWithoutArticlesInput, { nullable: true }) - tags?: TagUncheckedUpdateManyWithoutArticlesInput; + @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, { nullable: true }) + tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) createdAt?: DateTimeFieldUpdateOperationsInput; @@ -40,9 +40,11 @@ export class ArticleUncheckedUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) authorId?: StringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesInput; + @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, { + nullable: true, + }) + @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-unchecked-update-without-favorited-by.input.ts b/@generated/article/article-unchecked-update-without-favorited-by.input.ts index 91193601..6c4269d2 100644 --- a/@generated/article/article-unchecked-update-without-favorited-by.input.ts +++ b/@generated/article/article-unchecked-update-without-favorited-by.input.ts @@ -1,10 +1,10 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { TagUncheckedUpdateManyWithoutArticlesInput } from '../tag/tag-unchecked-update-many-without-articles.input'; +import { TagUncheckedUpdateManyWithoutArticlesNestedInput } from '../tag/tag-unchecked-update-many-without-articles-nested.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { CommentUncheckedUpdateManyWithoutArticleInput } from '../comment/comment-unchecked-update-many-without-article.input'; +import { CommentUncheckedUpdateManyWithoutArticleNestedInput } from '../comment/comment-unchecked-update-many-without-article-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -24,8 +24,8 @@ export class ArticleUncheckedUpdateWithoutFavoritedByInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => TagUncheckedUpdateManyWithoutArticlesInput, { nullable: true }) - tags?: TagUncheckedUpdateManyWithoutArticlesInput; + @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, { nullable: true }) + tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) createdAt?: DateTimeFieldUpdateOperationsInput; @@ -39,8 +39,8 @@ export class ArticleUncheckedUpdateWithoutFavoritedByInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) authorId?: StringFieldUpdateOperationsInput; - @Field(() => CommentUncheckedUpdateManyWithoutArticleInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutArticleInput; + @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-unchecked-update-without-tags.input.ts b/@generated/article/article-unchecked-update-without-tags.input.ts index a7027197..4640917f 100644 --- a/@generated/article/article-unchecked-update-without-tags.input.ts +++ b/@generated/article/article-unchecked-update-without-tags.input.ts @@ -3,9 +3,9 @@ import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFavoriteArticlesInput } from '../user/user-unchecked-update-many-without-favorite-articles.input'; +import { UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-unchecked-update-many-without-favorite-articles-nested.input'; import { Type } from 'class-transformer'; -import { CommentUncheckedUpdateManyWithoutArticleInput } from '../comment/comment-unchecked-update-many-without-article.input'; +import { CommentUncheckedUpdateManyWithoutArticleNestedInput } from '../comment/comment-unchecked-update-many-without-article-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -37,12 +37,14 @@ export class ArticleUncheckedUpdateWithoutTagsInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) authorId?: StringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesInput; + @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, { + nullable: true, + }) + @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutArticleInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutArticleInput; + @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-unchecked-update.input.ts b/@generated/article/article-unchecked-update.input.ts index 826c17ec..3f57e354 100644 --- a/@generated/article/article-unchecked-update.input.ts +++ b/@generated/article/article-unchecked-update.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { TagUncheckedUpdateManyWithoutArticlesInput } from '../tag/tag-unchecked-update-many-without-articles.input'; +import { TagUncheckedUpdateManyWithoutArticlesNestedInput } from '../tag/tag-unchecked-update-many-without-articles-nested.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFavoriteArticlesInput } from '../user/user-unchecked-update-many-without-favorite-articles.input'; +import { UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-unchecked-update-many-without-favorite-articles-nested.input'; import { Type } from 'class-transformer'; -import { CommentUncheckedUpdateManyWithoutArticleInput } from '../comment/comment-unchecked-update-many-without-article.input'; +import { CommentUncheckedUpdateManyWithoutArticleNestedInput } from '../comment/comment-unchecked-update-many-without-article-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -26,8 +26,8 @@ export class ArticleUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => TagUncheckedUpdateManyWithoutArticlesInput, { nullable: true }) - tags?: TagUncheckedUpdateManyWithoutArticlesInput; + @Field(() => TagUncheckedUpdateManyWithoutArticlesNestedInput, { nullable: true }) + tags?: TagUncheckedUpdateManyWithoutArticlesNestedInput; @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) createdAt?: DateTimeFieldUpdateOperationsInput; @@ -41,12 +41,14 @@ export class ArticleUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) authorId?: StringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesInput; + @Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput, { + nullable: true, + }) + @Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutArticleInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutArticleInput; + @Field(() => CommentUncheckedUpdateManyWithoutArticleNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutArticleNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-update-many-without-author.input.ts b/@generated/article/article-update-many-without-author-nested.input.ts similarity index 98% rename from @generated/article/article-update-many-without-author.input.ts rename to @generated/article/article-update-many-without-author-nested.input.ts index a04c9039..41375621 100644 --- a/@generated/article/article-update-many-without-author.input.ts +++ b/@generated/article/article-update-many-without-author-nested.input.ts @@ -11,7 +11,7 @@ import { ArticleUpdateManyWithWhereWithoutAuthorInput } from './article-update-m import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() -export class ArticleUpdateManyWithoutAuthorInput { +export class ArticleUpdateManyWithoutAuthorNestedInput { @Field(() => [ArticleCreateWithoutAuthorInput], { nullable: true }) @Type(() => ArticleCreateWithoutAuthorInput) create?: Array; diff --git a/@generated/article/article-update-many-without-favorited-by.input.ts b/@generated/article/article-update-many-without-favorited-by-nested.input.ts similarity index 97% rename from @generated/article/article-update-many-without-favorited-by.input.ts rename to @generated/article/article-update-many-without-favorited-by-nested.input.ts index 1bd73b41..0cdbffdd 100644 --- a/@generated/article/article-update-many-without-favorited-by.input.ts +++ b/@generated/article/article-update-many-without-favorited-by-nested.input.ts @@ -10,7 +10,7 @@ import { ArticleUpdateManyWithWhereWithoutFavoritedByInput } from './article-upd import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() -export class ArticleUpdateManyWithoutFavoritedByInput { +export class ArticleUpdateManyWithoutFavoritedByNestedInput { @Field(() => [ArticleCreateWithoutFavoritedByInput], { nullable: true }) @Type(() => ArticleCreateWithoutFavoritedByInput) create?: Array; diff --git a/@generated/article/article-update-many-without-tags.input.ts b/@generated/article/article-update-many-without-tags-nested.input.ts similarity index 97% rename from @generated/article/article-update-many-without-tags.input.ts rename to @generated/article/article-update-many-without-tags-nested.input.ts index c525ee79..209993cd 100644 --- a/@generated/article/article-update-many-without-tags.input.ts +++ b/@generated/article/article-update-many-without-tags-nested.input.ts @@ -10,7 +10,7 @@ import { ArticleUpdateManyWithWhereWithoutTagsInput } from './article-update-man import { ArticleScalarWhereInput } from './article-scalar-where.input'; @InputType() -export class ArticleUpdateManyWithoutTagsInput { +export class ArticleUpdateManyWithoutTagsNestedInput { @Field(() => [ArticleCreateWithoutTagsInput], { nullable: true }) @Type(() => ArticleCreateWithoutTagsInput) create?: Array; diff --git a/@generated/article/article-update-one-without-comments.input.ts b/@generated/article/article-update-one-without-comments-nested.input.ts similarity index 96% rename from @generated/article/article-update-one-without-comments.input.ts rename to @generated/article/article-update-one-without-comments-nested.input.ts index 3c57d131..7883b751 100644 --- a/@generated/article/article-update-one-without-comments.input.ts +++ b/@generated/article/article-update-one-without-comments-nested.input.ts @@ -8,7 +8,7 @@ import { ArticleWhereUniqueInput } from './article-where-unique.input'; import { ArticleUpdateWithoutCommentsInput } from './article-update-without-comments.input'; @InputType() -export class ArticleUpdateOneWithoutCommentsInput { +export class ArticleUpdateOneWithoutCommentsNestedInput { @Field(() => ArticleCreateWithoutCommentsInput, { nullable: true }) @Type(() => ArticleCreateWithoutCommentsInput) create?: ArticleCreateWithoutCommentsInput; diff --git a/@generated/article/article-update-without-author.input.ts b/@generated/article/article-update-without-author.input.ts index d913df64..d77af929 100644 --- a/@generated/article/article-update-without-author.input.ts +++ b/@generated/article/article-update-without-author.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { TagUpdateManyWithoutArticlesInput } from '../tag/tag-update-many-without-articles.input'; +import { TagUpdateManyWithoutArticlesNestedInput } from '../tag/tag-update-many-without-articles-nested.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUpdateManyWithoutFavoriteArticlesInput } from '../user/user-update-many-without-favorite-articles.input'; +import { UserUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-update-many-without-favorite-articles-nested.input'; import { Type } from 'class-transformer'; -import { CommentUpdateManyWithoutArticleInput } from '../comment/comment-update-many-without-article.input'; +import { CommentUpdateManyWithoutArticleNestedInput } from '../comment/comment-update-many-without-article-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -26,8 +26,8 @@ export class ArticleUpdateWithoutAuthorInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => TagUpdateManyWithoutArticlesInput, { nullable: true }) - tags?: TagUpdateManyWithoutArticlesInput; + @Field(() => TagUpdateManyWithoutArticlesNestedInput, { nullable: true }) + tags?: TagUpdateManyWithoutArticlesNestedInput; @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) createdAt?: DateTimeFieldUpdateOperationsInput; @@ -38,12 +38,12 @@ export class ArticleUpdateWithoutAuthorInput { @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUpdateManyWithoutFavoriteArticlesInput; + @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; - @Field(() => CommentUpdateManyWithoutArticleInput, { nullable: true }) - comments?: CommentUpdateManyWithoutArticleInput; + @Field(() => CommentUpdateManyWithoutArticleNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutArticleNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-update-without-comments.input.ts b/@generated/article/article-update-without-comments.input.ts index c6ea7045..5d20096e 100644 --- a/@generated/article/article-update-without-comments.input.ts +++ b/@generated/article/article-update-without-comments.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { TagUpdateManyWithoutArticlesInput } from '../tag/tag-update-many-without-articles.input'; +import { TagUpdateManyWithoutArticlesNestedInput } from '../tag/tag-update-many-without-articles-nested.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUpdateOneRequiredWithoutArticlesInput } from '../user/user-update-one-required-without-articles.input'; +import { UserUpdateOneRequiredWithoutArticlesNestedInput } from '../user/user-update-one-required-without-articles-nested.input'; import { Type } from 'class-transformer'; -import { UserUpdateManyWithoutFavoriteArticlesInput } from '../user/user-update-many-without-favorite-articles.input'; +import { UserUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-update-many-without-favorite-articles-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -26,8 +26,8 @@ export class ArticleUpdateWithoutCommentsInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => TagUpdateManyWithoutArticlesInput, { nullable: true }) - tags?: TagUpdateManyWithoutArticlesInput; + @Field(() => TagUpdateManyWithoutArticlesNestedInput, { nullable: true }) + tags?: TagUpdateManyWithoutArticlesNestedInput; @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) createdAt?: DateTimeFieldUpdateOperationsInput; @@ -38,13 +38,13 @@ export class ArticleUpdateWithoutCommentsInput { @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutArticlesInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutArticlesInput) - author?: UserUpdateOneRequiredWithoutArticlesInput; + @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, { nullable: true }) + @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) + author?: UserUpdateOneRequiredWithoutArticlesNestedInput; - @Field(() => UserUpdateManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUpdateManyWithoutFavoriteArticlesInput; + @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-update-without-favorited-by.input.ts b/@generated/article/article-update-without-favorited-by.input.ts index 123cce0a..6b170100 100644 --- a/@generated/article/article-update-without-favorited-by.input.ts +++ b/@generated/article/article-update-without-favorited-by.input.ts @@ -1,12 +1,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { TagUpdateManyWithoutArticlesInput } from '../tag/tag-update-many-without-articles.input'; +import { TagUpdateManyWithoutArticlesNestedInput } from '../tag/tag-update-many-without-articles-nested.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUpdateOneRequiredWithoutArticlesInput } from '../user/user-update-one-required-without-articles.input'; +import { UserUpdateOneRequiredWithoutArticlesNestedInput } from '../user/user-update-one-required-without-articles-nested.input'; import { Type } from 'class-transformer'; -import { CommentUpdateManyWithoutArticleInput } from '../comment/comment-update-many-without-article.input'; +import { CommentUpdateManyWithoutArticleNestedInput } from '../comment/comment-update-many-without-article-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -26,8 +26,8 @@ export class ArticleUpdateWithoutFavoritedByInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => TagUpdateManyWithoutArticlesInput, { nullable: true }) - tags?: TagUpdateManyWithoutArticlesInput; + @Field(() => TagUpdateManyWithoutArticlesNestedInput, { nullable: true }) + tags?: TagUpdateManyWithoutArticlesNestedInput; @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) createdAt?: DateTimeFieldUpdateOperationsInput; @@ -38,12 +38,12 @@ export class ArticleUpdateWithoutFavoritedByInput { @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutArticlesInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutArticlesInput) - author?: UserUpdateOneRequiredWithoutArticlesInput; + @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, { nullable: true }) + @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) + author?: UserUpdateOneRequiredWithoutArticlesNestedInput; - @Field(() => CommentUpdateManyWithoutArticleInput, { nullable: true }) - comments?: CommentUpdateManyWithoutArticleInput; + @Field(() => CommentUpdateManyWithoutArticleNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutArticleNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-update-without-tags.input.ts b/@generated/article/article-update-without-tags.input.ts index b2dbe2a6..9b5a9150 100644 --- a/@generated/article/article-update-without-tags.input.ts +++ b/@generated/article/article-update-without-tags.input.ts @@ -3,10 +3,10 @@ import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUpdateOneRequiredWithoutArticlesInput } from '../user/user-update-one-required-without-articles.input'; +import { UserUpdateOneRequiredWithoutArticlesNestedInput } from '../user/user-update-one-required-without-articles-nested.input'; import { Type } from 'class-transformer'; -import { UserUpdateManyWithoutFavoriteArticlesInput } from '../user/user-update-many-without-favorite-articles.input'; -import { CommentUpdateManyWithoutArticleInput } from '../comment/comment-update-many-without-article.input'; +import { UserUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-update-many-without-favorite-articles-nested.input'; +import { CommentUpdateManyWithoutArticleNestedInput } from '../comment/comment-update-many-without-article-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -35,16 +35,16 @@ export class ArticleUpdateWithoutTagsInput { @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutArticlesInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutArticlesInput) - author?: UserUpdateOneRequiredWithoutArticlesInput; + @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, { nullable: true }) + @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) + author?: UserUpdateOneRequiredWithoutArticlesNestedInput; - @Field(() => UserUpdateManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUpdateManyWithoutFavoriteArticlesInput; + @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; - @Field(() => CommentUpdateManyWithoutArticleInput, { nullable: true }) - comments?: CommentUpdateManyWithoutArticleInput; + @Field(() => CommentUpdateManyWithoutArticleNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutArticleNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/article/article-update.input.ts b/@generated/article/article-update.input.ts index 6c5b906c..499a5e98 100644 --- a/@generated/article/article-update.input.ts +++ b/@generated/article/article-update.input.ts @@ -1,13 +1,13 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { TagUpdateManyWithoutArticlesInput } from '../tag/tag-update-many-without-articles.input'; +import { TagUpdateManyWithoutArticlesNestedInput } from '../tag/tag-update-many-without-articles-nested.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { IntFieldUpdateOperationsInput } from '../prisma/int-field-update-operations.input'; -import { UserUpdateOneRequiredWithoutArticlesInput } from '../user/user-update-one-required-without-articles.input'; +import { UserUpdateOneRequiredWithoutArticlesNestedInput } from '../user/user-update-one-required-without-articles-nested.input'; import { Type } from 'class-transformer'; -import { UserUpdateManyWithoutFavoriteArticlesInput } from '../user/user-update-many-without-favorite-articles.input'; -import { CommentUpdateManyWithoutArticleInput } from '../comment/comment-update-many-without-article.input'; +import { UserUpdateManyWithoutFavoriteArticlesNestedInput } from '../user/user-update-many-without-favorite-articles-nested.input'; +import { CommentUpdateManyWithoutArticleNestedInput } from '../comment/comment-update-many-without-article-nested.input'; import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input'; @InputType() @@ -27,8 +27,8 @@ export class ArticleUpdateInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => TagUpdateManyWithoutArticlesInput, { nullable: true }) - tags?: TagUpdateManyWithoutArticlesInput; + @Field(() => TagUpdateManyWithoutArticlesNestedInput, { nullable: true }) + tags?: TagUpdateManyWithoutArticlesNestedInput; @Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true }) createdAt?: DateTimeFieldUpdateOperationsInput; @@ -39,16 +39,16 @@ export class ArticleUpdateInput { @Field(() => IntFieldUpdateOperationsInput, { nullable: true }) favoritesCount?: IntFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutArticlesInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutArticlesInput) - author?: UserUpdateOneRequiredWithoutArticlesInput; + @Field(() => UserUpdateOneRequiredWithoutArticlesNestedInput, { nullable: true }) + @Type(() => UserUpdateOneRequiredWithoutArticlesNestedInput) + author?: UserUpdateOneRequiredWithoutArticlesNestedInput; - @Field(() => UserUpdateManyWithoutFavoriteArticlesInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFavoriteArticlesInput) - favoritedBy?: UserUpdateManyWithoutFavoriteArticlesInput; + @Field(() => UserUpdateManyWithoutFavoriteArticlesNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFavoriteArticlesNestedInput) + favoritedBy?: UserUpdateManyWithoutFavoriteArticlesNestedInput; - @Field(() => CommentUpdateManyWithoutArticleInput, { nullable: true }) - comments?: CommentUpdateManyWithoutArticleInput; + @Field(() => CommentUpdateManyWithoutArticleNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutArticleNestedInput; @Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true }) active?: NullableBoolFieldUpdateOperationsInput; diff --git a/@generated/comment/comment-unchecked-update-many-without-article.input.ts b/@generated/comment/comment-unchecked-update-many-without-article-nested.input.ts similarity index 97% rename from @generated/comment/comment-unchecked-update-many-without-article.input.ts rename to @generated/comment/comment-unchecked-update-many-without-article-nested.input.ts index 921493e7..014139b8 100644 --- a/@generated/comment/comment-unchecked-update-many-without-article.input.ts +++ b/@generated/comment/comment-unchecked-update-many-without-article-nested.input.ts @@ -11,7 +11,7 @@ import { CommentUpdateManyWithWhereWithoutArticleInput } from './comment-update- import { CommentScalarWhereInput } from './comment-scalar-where.input'; @InputType() -export class CommentUncheckedUpdateManyWithoutArticleInput { +export class CommentUncheckedUpdateManyWithoutArticleNestedInput { @Field(() => [CommentCreateWithoutArticleInput], { nullable: true }) @Type(() => CommentCreateWithoutArticleInput) create?: Array; diff --git a/@generated/comment/comment-unchecked-update-many-without-author.input.ts b/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts similarity index 97% rename from @generated/comment/comment-unchecked-update-many-without-author.input.ts rename to @generated/comment/comment-unchecked-update-many-without-author-nested.input.ts index fbb96d73..b185258b 100644 --- a/@generated/comment/comment-unchecked-update-many-without-author.input.ts +++ b/@generated/comment/comment-unchecked-update-many-without-author-nested.input.ts @@ -11,7 +11,7 @@ import { CommentUpdateManyWithWhereWithoutAuthorInput } from './comment-update-m import { CommentScalarWhereInput } from './comment-scalar-where.input'; @InputType() -export class CommentUncheckedUpdateManyWithoutAuthorInput { +export class CommentUncheckedUpdateManyWithoutAuthorNestedInput { @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) @Type(() => CommentCreateWithoutAuthorInput) create?: Array; diff --git a/@generated/comment/comment-update-many-without-article.input.ts b/@generated/comment/comment-update-many-without-article-nested.input.ts similarity index 98% rename from @generated/comment/comment-update-many-without-article.input.ts rename to @generated/comment/comment-update-many-without-article-nested.input.ts index 2d70c3ee..e5d9bb70 100644 --- a/@generated/comment/comment-update-many-without-article.input.ts +++ b/@generated/comment/comment-update-many-without-article-nested.input.ts @@ -11,7 +11,7 @@ import { CommentUpdateManyWithWhereWithoutArticleInput } from './comment-update- import { CommentScalarWhereInput } from './comment-scalar-where.input'; @InputType() -export class CommentUpdateManyWithoutArticleInput { +export class CommentUpdateManyWithoutArticleNestedInput { @Field(() => [CommentCreateWithoutArticleInput], { nullable: true }) @Type(() => CommentCreateWithoutArticleInput) create?: Array; diff --git a/@generated/comment/comment-update-many-without-author.input.ts b/@generated/comment/comment-update-many-without-author-nested.input.ts similarity index 98% rename from @generated/comment/comment-update-many-without-author.input.ts rename to @generated/comment/comment-update-many-without-author-nested.input.ts index 6d5aaff5..d497bdc5 100644 --- a/@generated/comment/comment-update-many-without-author.input.ts +++ b/@generated/comment/comment-update-many-without-author-nested.input.ts @@ -11,7 +11,7 @@ import { CommentUpdateManyWithWhereWithoutAuthorInput } from './comment-update-m import { CommentScalarWhereInput } from './comment-scalar-where.input'; @InputType() -export class CommentUpdateManyWithoutAuthorInput { +export class CommentUpdateManyWithoutAuthorNestedInput { @Field(() => [CommentCreateWithoutAuthorInput], { nullable: true }) @Type(() => CommentCreateWithoutAuthorInput) create?: Array; diff --git a/@generated/comment/comment-update-without-article.input.ts b/@generated/comment/comment-update-without-article.input.ts index 7cdbbc1d..4e5949d2 100644 --- a/@generated/comment/comment-update-without-article.input.ts +++ b/@generated/comment/comment-update-without-article.input.ts @@ -3,7 +3,7 @@ import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; -import { UserUpdateOneRequiredWithoutCommentsInput } from '../user/user-update-one-required-without-comments.input'; +import { UserUpdateOneRequiredWithoutCommentsNestedInput } from '../user/user-update-one-required-without-comments-nested.input'; import { Type } from 'class-transformer'; @InputType() @@ -20,7 +20,7 @@ export class CommentUpdateWithoutArticleInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutCommentsInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutCommentsInput) - author?: UserUpdateOneRequiredWithoutCommentsInput; + @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, { nullable: true }) + @Type(() => UserUpdateOneRequiredWithoutCommentsNestedInput) + author?: UserUpdateOneRequiredWithoutCommentsNestedInput; } diff --git a/@generated/comment/comment-update-without-author.input.ts b/@generated/comment/comment-update-without-author.input.ts index 3a9f8e87..6690617e 100644 --- a/@generated/comment/comment-update-without-author.input.ts +++ b/@generated/comment/comment-update-without-author.input.ts @@ -3,7 +3,7 @@ import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; -import { ArticleUpdateOneWithoutCommentsInput } from '../article/article-update-one-without-comments.input'; +import { ArticleUpdateOneWithoutCommentsNestedInput } from '../article/article-update-one-without-comments-nested.input'; @InputType() export class CommentUpdateWithoutAuthorInput { @@ -19,6 +19,6 @@ export class CommentUpdateWithoutAuthorInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => ArticleUpdateOneWithoutCommentsInput, { nullable: true }) - article?: ArticleUpdateOneWithoutCommentsInput; + @Field(() => ArticleUpdateOneWithoutCommentsNestedInput, { nullable: true }) + article?: ArticleUpdateOneWithoutCommentsNestedInput; } diff --git a/@generated/comment/comment-update.input.ts b/@generated/comment/comment-update.input.ts index 77447f44..246caab6 100644 --- a/@generated/comment/comment-update.input.ts +++ b/@generated/comment/comment-update.input.ts @@ -3,9 +3,9 @@ import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input'; import { HideField } from '@nestjs/graphql'; -import { UserUpdateOneRequiredWithoutCommentsInput } from '../user/user-update-one-required-without-comments.input'; +import { UserUpdateOneRequiredWithoutCommentsNestedInput } from '../user/user-update-one-required-without-comments-nested.input'; import { Type } from 'class-transformer'; -import { ArticleUpdateOneWithoutCommentsInput } from '../article/article-update-one-without-comments.input'; +import { ArticleUpdateOneWithoutCommentsNestedInput } from '../article/article-update-one-without-comments-nested.input'; @InputType() export class CommentUpdateInput { @@ -21,10 +21,10 @@ export class CommentUpdateInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) body?: StringFieldUpdateOperationsInput; - @Field(() => UserUpdateOneRequiredWithoutCommentsInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutCommentsInput) - author?: UserUpdateOneRequiredWithoutCommentsInput; + @Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, { nullable: true }) + @Type(() => UserUpdateOneRequiredWithoutCommentsNestedInput) + author?: UserUpdateOneRequiredWithoutCommentsNestedInput; - @Field(() => ArticleUpdateOneWithoutCommentsInput, { nullable: true }) - article?: ArticleUpdateOneWithoutCommentsInput; + @Field(() => ArticleUpdateOneWithoutCommentsNestedInput, { nullable: true }) + article?: ArticleUpdateOneWithoutCommentsNestedInput; } diff --git a/@generated/profile/profile-unchecked-update-one-without-user.input.ts b/@generated/profile/profile-unchecked-update-one-without-user-nested.input.ts similarity index 95% rename from @generated/profile/profile-unchecked-update-one-without-user.input.ts rename to @generated/profile/profile-unchecked-update-one-without-user-nested.input.ts index 4e2860e6..b579980e 100644 --- a/@generated/profile/profile-unchecked-update-one-without-user.input.ts +++ b/@generated/profile/profile-unchecked-update-one-without-user-nested.input.ts @@ -8,7 +8,7 @@ import { ProfileWhereUniqueInput } from './profile-where-unique.input'; import { ProfileUpdateWithoutUserInput } from './profile-update-without-user.input'; @InputType() -export class ProfileUncheckedUpdateOneWithoutUserInput { +export class ProfileUncheckedUpdateOneWithoutUserNestedInput { @Field(() => ProfileCreateWithoutUserInput, { nullable: true }) @Type(() => ProfileCreateWithoutUserInput) create?: ProfileCreateWithoutUserInput; diff --git a/@generated/profile/profile-update-one-without-user.input.ts b/@generated/profile/profile-update-one-without-user-nested.input.ts similarity index 96% rename from @generated/profile/profile-update-one-without-user.input.ts rename to @generated/profile/profile-update-one-without-user-nested.input.ts index 2f58832a..6a912899 100644 --- a/@generated/profile/profile-update-one-without-user.input.ts +++ b/@generated/profile/profile-update-one-without-user-nested.input.ts @@ -8,7 +8,7 @@ import { ProfileWhereUniqueInput } from './profile-where-unique.input'; import { ProfileUpdateWithoutUserInput } from './profile-update-without-user.input'; @InputType() -export class ProfileUpdateOneWithoutUserInput { +export class ProfileUpdateOneWithoutUserNestedInput { @Field(() => ProfileCreateWithoutUserInput, { nullable: true }) @Type(() => ProfileCreateWithoutUserInput) create?: ProfileCreateWithoutUserInput; diff --git a/@generated/profile/profile-update.input.ts b/@generated/profile/profile-update.input.ts index e26cfbec..4428f674 100644 --- a/@generated/profile/profile-update.input.ts +++ b/@generated/profile/profile-update.input.ts @@ -1,14 +1,14 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { UserUpdateOneRequiredWithoutProfileInput } from '../user/user-update-one-required-without-profile.input'; +import { UserUpdateOneRequiredWithoutProfileNestedInput } from '../user/user-update-one-required-without-profile-nested.input'; import { Type } from 'class-transformer'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; @InputType() export class ProfileUpdateInput { - @Field(() => UserUpdateOneRequiredWithoutProfileInput, { nullable: true }) - @Type(() => UserUpdateOneRequiredWithoutProfileInput) - user?: UserUpdateOneRequiredWithoutProfileInput; + @Field(() => UserUpdateOneRequiredWithoutProfileNestedInput, { nullable: true }) + @Type(() => UserUpdateOneRequiredWithoutProfileNestedInput) + user?: UserUpdateOneRequiredWithoutProfileNestedInput; @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) dummy?: NullableStringFieldUpdateOperationsInput; diff --git a/@generated/tag/tag-unchecked-update-many-without-articles.input.ts b/@generated/tag/tag-unchecked-update-many-without-articles-nested.input.ts similarity index 97% rename from @generated/tag/tag-unchecked-update-many-without-articles.input.ts rename to @generated/tag/tag-unchecked-update-many-without-articles-nested.input.ts index 13aa898d..8932ab27 100644 --- a/@generated/tag/tag-unchecked-update-many-without-articles.input.ts +++ b/@generated/tag/tag-unchecked-update-many-without-articles-nested.input.ts @@ -10,7 +10,7 @@ import { TagUpdateManyWithWhereWithoutArticlesInput } from './tag-update-many-wi import { TagScalarWhereInput } from './tag-scalar-where.input'; @InputType() -export class TagUncheckedUpdateManyWithoutArticlesInput { +export class TagUncheckedUpdateManyWithoutArticlesNestedInput { @Field(() => [TagCreateWithoutArticlesInput], { nullable: true }) @Type(() => TagCreateWithoutArticlesInput) create?: Array; diff --git a/@generated/tag/tag-unchecked-update.input.ts b/@generated/tag/tag-unchecked-update.input.ts index 29bc5562..4937daff 100644 --- a/@generated/tag/tag-unchecked-update.input.ts +++ b/@generated/tag/tag-unchecked-update.input.ts @@ -1,7 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { ArticleUncheckedUpdateManyWithoutTagsInput } from '../article/article-unchecked-update-many-without-tags.input'; +import { ArticleUncheckedUpdateManyWithoutTagsNestedInput } from '../article/article-unchecked-update-many-without-tags-nested.input'; @InputType() export class TagUncheckedUpdateInput { @@ -11,6 +11,6 @@ export class TagUncheckedUpdateInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) name?: StringFieldUpdateOperationsInput; - @Field(() => ArticleUncheckedUpdateManyWithoutTagsInput, { nullable: true }) - articles?: ArticleUncheckedUpdateManyWithoutTagsInput; + @Field(() => ArticleUncheckedUpdateManyWithoutTagsNestedInput, { nullable: true }) + articles?: ArticleUncheckedUpdateManyWithoutTagsNestedInput; } diff --git a/@generated/tag/tag-update-many-without-articles.input.ts b/@generated/tag/tag-update-many-without-articles-nested.input.ts similarity index 97% rename from @generated/tag/tag-update-many-without-articles.input.ts rename to @generated/tag/tag-update-many-without-articles-nested.input.ts index 9fc05d6b..77bf5ebd 100644 --- a/@generated/tag/tag-update-many-without-articles.input.ts +++ b/@generated/tag/tag-update-many-without-articles-nested.input.ts @@ -10,7 +10,7 @@ import { TagUpdateManyWithWhereWithoutArticlesInput } from './tag-update-many-wi import { TagScalarWhereInput } from './tag-scalar-where.input'; @InputType() -export class TagUpdateManyWithoutArticlesInput { +export class TagUpdateManyWithoutArticlesNestedInput { @Field(() => [TagCreateWithoutArticlesInput], { nullable: true }) @Type(() => TagCreateWithoutArticlesInput) create?: Array; diff --git a/@generated/tag/tag-update.input.ts b/@generated/tag/tag-update.input.ts index 47a1188b..cfae2188 100644 --- a/@generated/tag/tag-update.input.ts +++ b/@generated/tag/tag-update.input.ts @@ -1,7 +1,7 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; -import { ArticleUpdateManyWithoutTagsInput } from '../article/article-update-many-without-tags.input'; +import { ArticleUpdateManyWithoutTagsNestedInput } from '../article/article-update-many-without-tags-nested.input'; @InputType() export class TagUpdateInput { @@ -11,6 +11,6 @@ export class TagUpdateInput { @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) name?: StringFieldUpdateOperationsInput; - @Field(() => ArticleUpdateManyWithoutTagsInput, { nullable: true }) - articles?: ArticleUpdateManyWithoutTagsInput; + @Field(() => ArticleUpdateManyWithoutTagsNestedInput, { nullable: true }) + articles?: ArticleUpdateManyWithoutTagsNestedInput; } diff --git a/@generated/user/user-unchecked-update-many-without-favorite-articles.input.ts b/@generated/user/user-unchecked-update-many-without-favorite-articles-nested.input.ts similarity index 97% rename from @generated/user/user-unchecked-update-many-without-favorite-articles.input.ts rename to @generated/user/user-unchecked-update-many-without-favorite-articles-nested.input.ts index d224d204..b8093736 100644 --- a/@generated/user/user-unchecked-update-many-without-favorite-articles.input.ts +++ b/@generated/user/user-unchecked-update-many-without-favorite-articles-nested.input.ts @@ -10,7 +10,7 @@ import { UserUpdateManyWithWhereWithoutFavoriteArticlesInput } from './user-upda import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() -export class UserUncheckedUpdateManyWithoutFavoriteArticlesInput { +export class UserUncheckedUpdateManyWithoutFavoriteArticlesNestedInput { @Field(() => [UserCreateWithoutFavoriteArticlesInput], { nullable: true }) @Type(() => UserCreateWithoutFavoriteArticlesInput) create?: Array; diff --git a/@generated/user/user-unchecked-update-many-without-followers-nested.input.ts b/@generated/user/user-unchecked-update-many-without-followers-nested.input.ts new file mode 100644 index 00000000..15611466 --- /dev/null +++ b/@generated/user/user-unchecked-update-many-without-followers-nested.input.ts @@ -0,0 +1,53 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { UserCreateWithoutFollowersInput } from './user-create-without-followers.input'; +import { Type } from 'class-transformer'; +import { UserCreateOrConnectWithoutFollowersInput } from './user-create-or-connect-without-followers.input'; +import { UserUpsertWithWhereUniqueWithoutFollowersInput } from './user-upsert-with-where-unique-without-followers.input'; +import { UserWhereUniqueInput } from './user-where-unique.input'; +import { UserUpdateWithWhereUniqueWithoutFollowersInput } from './user-update-with-where-unique-without-followers.input'; +import { UserUpdateManyWithWhereWithoutFollowersInput } from './user-update-many-with-where-without-followers.input'; +import { UserScalarWhereInput } from './user-scalar-where.input'; + +@InputType() +export class UserUncheckedUpdateManyWithoutFollowersNestedInput { + @Field(() => [UserCreateWithoutFollowersInput], { nullable: true }) + @Type(() => UserCreateWithoutFollowersInput) + create?: Array; + + @Field(() => [UserCreateOrConnectWithoutFollowersInput], { nullable: true }) + @Type(() => UserCreateOrConnectWithoutFollowersInput) + connectOrCreate?: Array; + + @Field(() => [UserUpsertWithWhereUniqueWithoutFollowersInput], { nullable: true }) + @Type(() => UserUpsertWithWhereUniqueWithoutFollowersInput) + upsert?: Array; + + @Field(() => [UserWhereUniqueInput], { nullable: true }) + @Type(() => UserWhereUniqueInput) + set?: Array; + + @Field(() => [UserWhereUniqueInput], { nullable: true }) + @Type(() => UserWhereUniqueInput) + disconnect?: Array; + + @Field(() => [UserWhereUniqueInput], { nullable: true }) + @Type(() => UserWhereUniqueInput) + delete?: Array; + + @Field(() => [UserWhereUniqueInput], { nullable: true }) + @Type(() => UserWhereUniqueInput) + connect?: Array; + + @Field(() => [UserUpdateWithWhereUniqueWithoutFollowersInput], { nullable: true }) + @Type(() => UserUpdateWithWhereUniqueWithoutFollowersInput) + update?: Array; + + @Field(() => [UserUpdateManyWithWhereWithoutFollowersInput], { nullable: true }) + @Type(() => UserUpdateManyWithWhereWithoutFollowersInput) + updateMany?: Array; + + @Field(() => [UserScalarWhereInput], { nullable: true }) + @Type(() => UserScalarWhereInput) + deleteMany?: Array; +} diff --git a/@generated/user/user-unchecked-update-many-without-followers.input.ts b/@generated/user/user-unchecked-update-many-without-followers.input.ts index 54eb3639..d89dad98 100644 --- a/@generated/user/user-unchecked-update-many-without-followers.input.ts +++ b/@generated/user/user-unchecked-update-many-without-followers.input.ts @@ -1,53 +1,43 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { UserCreateWithoutFollowersInput } from './user-create-without-followers.input'; +import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; +import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; +import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; +import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { Type } from 'class-transformer'; -import { UserCreateOrConnectWithoutFollowersInput } from './user-create-or-connect-without-followers.input'; -import { UserUpsertWithWhereUniqueWithoutFollowersInput } from './user-upsert-with-where-unique-without-followers.input'; -import { UserWhereUniqueInput } from './user-where-unique.input'; -import { UserUpdateWithWhereUniqueWithoutFollowersInput } from './user-update-with-where-unique-without-followers.input'; -import { UserUpdateManyWithWhereWithoutFollowersInput } from './user-update-many-with-where-without-followers.input'; -import { UserScalarWhereInput } from './user-scalar-where.input'; +import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; @InputType() export class UserUncheckedUpdateManyWithoutFollowersInput { - @Field(() => [UserCreateWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowersInput) - create?: Array; + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + id?: StringFieldUpdateOperationsInput; - @Field(() => [UserCreateOrConnectWithoutFollowersInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowersInput) - connectOrCreate?: Array; + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + email?: StringFieldUpdateOperationsInput; - @Field(() => [UserUpsertWithWhereUniqueWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpsertWithWhereUniqueWithoutFollowersInput) - upsert?: Array; + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + name?: StringFieldUpdateOperationsInput; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - set?: Array; + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + password?: StringFieldUpdateOperationsInput; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - disconnect?: Array; + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - delete?: Array; + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array; + @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => [UserUpdateWithWhereUniqueWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpdateWithWhereUniqueWithoutFollowersInput) - update?: Array; + @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => [UserUpdateManyWithWhereWithoutFollowersInput], { nullable: true }) - @Type(() => UserUpdateManyWithWhereWithoutFollowersInput) - updateMany?: Array; + @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - deleteMany?: Array; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) + role?: NullableEnumRoleFieldUpdateOperationsInput; } diff --git a/@generated/user/user-unchecked-update-many-without-following-nested.input.ts b/@generated/user/user-unchecked-update-many-without-following-nested.input.ts new file mode 100644 index 00000000..59eabbd8 --- /dev/null +++ b/@generated/user/user-unchecked-update-many-without-following-nested.input.ts @@ -0,0 +1,53 @@ +import { Field } from '@nestjs/graphql'; +import { InputType } from '@nestjs/graphql'; +import { UserCreateWithoutFollowingInput } from './user-create-without-following.input'; +import { Type } from 'class-transformer'; +import { UserCreateOrConnectWithoutFollowingInput } from './user-create-or-connect-without-following.input'; +import { UserUpsertWithWhereUniqueWithoutFollowingInput } from './user-upsert-with-where-unique-without-following.input'; +import { UserWhereUniqueInput } from './user-where-unique.input'; +import { UserUpdateWithWhereUniqueWithoutFollowingInput } from './user-update-with-where-unique-without-following.input'; +import { UserUpdateManyWithWhereWithoutFollowingInput } from './user-update-many-with-where-without-following.input'; +import { UserScalarWhereInput } from './user-scalar-where.input'; + +@InputType() +export class UserUncheckedUpdateManyWithoutFollowingNestedInput { + @Field(() => [UserCreateWithoutFollowingInput], { nullable: true }) + @Type(() => UserCreateWithoutFollowingInput) + create?: Array; + + @Field(() => [UserCreateOrConnectWithoutFollowingInput], { nullable: true }) + @Type(() => UserCreateOrConnectWithoutFollowingInput) + connectOrCreate?: Array; + + @Field(() => [UserUpsertWithWhereUniqueWithoutFollowingInput], { nullable: true }) + @Type(() => UserUpsertWithWhereUniqueWithoutFollowingInput) + upsert?: Array; + + @Field(() => [UserWhereUniqueInput], { nullable: true }) + @Type(() => UserWhereUniqueInput) + set?: Array; + + @Field(() => [UserWhereUniqueInput], { nullable: true }) + @Type(() => UserWhereUniqueInput) + disconnect?: Array; + + @Field(() => [UserWhereUniqueInput], { nullable: true }) + @Type(() => UserWhereUniqueInput) + delete?: Array; + + @Field(() => [UserWhereUniqueInput], { nullable: true }) + @Type(() => UserWhereUniqueInput) + connect?: Array; + + @Field(() => [UserUpdateWithWhereUniqueWithoutFollowingInput], { nullable: true }) + @Type(() => UserUpdateWithWhereUniqueWithoutFollowingInput) + update?: Array; + + @Field(() => [UserUpdateManyWithWhereWithoutFollowingInput], { nullable: true }) + @Type(() => UserUpdateManyWithWhereWithoutFollowingInput) + updateMany?: Array; + + @Field(() => [UserScalarWhereInput], { nullable: true }) + @Type(() => UserScalarWhereInput) + deleteMany?: Array; +} diff --git a/@generated/user/user-unchecked-update-many-without-following.input.ts b/@generated/user/user-unchecked-update-many-without-following.input.ts index 28d0aef8..b7b1512d 100644 --- a/@generated/user/user-unchecked-update-many-without-following.input.ts +++ b/@generated/user/user-unchecked-update-many-without-following.input.ts @@ -1,53 +1,43 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; -import { UserCreateWithoutFollowingInput } from './user-create-without-following.input'; +import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; +import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; +import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; +import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; +import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { Type } from 'class-transformer'; -import { UserCreateOrConnectWithoutFollowingInput } from './user-create-or-connect-without-following.input'; -import { UserUpsertWithWhereUniqueWithoutFollowingInput } from './user-upsert-with-where-unique-without-following.input'; -import { UserWhereUniqueInput } from './user-where-unique.input'; -import { UserUpdateWithWhereUniqueWithoutFollowingInput } from './user-update-with-where-unique-without-following.input'; -import { UserUpdateManyWithWhereWithoutFollowingInput } from './user-update-many-with-where-without-following.input'; -import { UserScalarWhereInput } from './user-scalar-where.input'; +import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; @InputType() export class UserUncheckedUpdateManyWithoutFollowingInput { - @Field(() => [UserCreateWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateWithoutFollowingInput) - create?: Array; + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + id?: StringFieldUpdateOperationsInput; - @Field(() => [UserCreateOrConnectWithoutFollowingInput], { nullable: true }) - @Type(() => UserCreateOrConnectWithoutFollowingInput) - connectOrCreate?: Array; + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + email?: StringFieldUpdateOperationsInput; - @Field(() => [UserUpsertWithWhereUniqueWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpsertWithWhereUniqueWithoutFollowingInput) - upsert?: Array; + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + name?: StringFieldUpdateOperationsInput; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - set?: Array; + @Field(() => StringFieldUpdateOperationsInput, { nullable: true }) + password?: StringFieldUpdateOperationsInput; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - disconnect?: Array; + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + bio?: NullableStringFieldUpdateOperationsInput; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - delete?: Array; + @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) + image?: NullableStringFieldUpdateOperationsInput; - @Field(() => [UserWhereUniqueInput], { nullable: true }) - @Type(() => UserWhereUniqueInput) - connect?: Array; + @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) + countComments?: NullableIntFieldUpdateOperationsInput; - @Field(() => [UserUpdateWithWhereUniqueWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpdateWithWhereUniqueWithoutFollowingInput) - update?: Array; + @Field(() => NullableFloatFieldUpdateOperationsInput, { nullable: true }) + rating?: NullableFloatFieldUpdateOperationsInput; - @Field(() => [UserUpdateManyWithWhereWithoutFollowingInput], { nullable: true }) - @Type(() => UserUpdateManyWithWhereWithoutFollowingInput) - updateMany?: Array; + @Field(() => NullableDecimalFieldUpdateOperationsInput, { nullable: true }) + @Type(() => NullableDecimalFieldUpdateOperationsInput) + money?: NullableDecimalFieldUpdateOperationsInput; - @Field(() => [UserScalarWhereInput], { nullable: true }) - @Type(() => UserScalarWhereInput) - deleteMany?: Array; + @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) + role?: NullableEnumRoleFieldUpdateOperationsInput; } diff --git a/@generated/user/user-unchecked-update-without-articles.input.ts b/@generated/user/user-unchecked-update-without-articles.input.ts index 0c7b357b..60a19fda 100644 --- a/@generated/user/user-unchecked-update-without-articles.input.ts +++ b/@generated/user/user-unchecked-update-without-articles.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFollowersInput } from './user-unchecked-update-many-without-followers.input'; +import { UserUncheckedUpdateManyWithoutFollowersNestedInput } from './user-unchecked-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUncheckedUpdateManyWithoutFollowingInput } from './user-unchecked-update-many-without-following.input'; -import { ArticleUncheckedUpdateManyWithoutFavoritedByInput } from '../article/article-unchecked-update-many-without-favorited-by.input'; -import { CommentUncheckedUpdateManyWithoutAuthorInput } from '../comment/comment-unchecked-update-many-without-author.input'; +import { UserUncheckedUpdateManyWithoutFollowingNestedInput } from './user-unchecked-update-many-without-following-nested.input'; +import { ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput } from '../article/article-unchecked-update-many-without-favorited-by-nested.input'; +import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUncheckedUpdateOneWithoutUserInput } from '../profile/profile-unchecked-update-one-without-user.input'; +import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/profile-unchecked-update-one-without-user-nested.input'; @InputType() export class UserUncheckedUpdateWithoutArticlesInput { @@ -33,19 +33,21 @@ export class UserUncheckedUpdateWithoutArticlesInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersInput) - following?: UserUncheckedUpdateManyWithoutFollowersInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingInput) - followers?: UserUncheckedUpdateManyWithoutFollowingInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { + nullable: true, + }) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutAuthorInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -60,6 +62,6 @@ export class UserUncheckedUpdateWithoutArticlesInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUncheckedUpdateOneWithoutUserInput; + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-comments.input.ts b/@generated/user/user-unchecked-update-without-comments.input.ts index b460c77d..359043c5 100644 --- a/@generated/user/user-unchecked-update-without-comments.input.ts +++ b/@generated/user/user-unchecked-update-without-comments.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFollowersInput } from './user-unchecked-update-many-without-followers.input'; +import { UserUncheckedUpdateManyWithoutFollowersNestedInput } from './user-unchecked-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUncheckedUpdateManyWithoutFollowingInput } from './user-unchecked-update-many-without-following.input'; -import { ArticleUncheckedUpdateManyWithoutFavoritedByInput } from '../article/article-unchecked-update-many-without-favorited-by.input'; -import { ArticleUncheckedUpdateManyWithoutAuthorInput } from '../article/article-unchecked-update-many-without-author.input'; +import { UserUncheckedUpdateManyWithoutFollowingNestedInput } from './user-unchecked-update-many-without-following-nested.input'; +import { ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput } from '../article/article-unchecked-update-many-without-favorited-by-nested.input'; +import { ArticleUncheckedUpdateManyWithoutAuthorNestedInput } from '../article/article-unchecked-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUncheckedUpdateOneWithoutUserInput } from '../profile/profile-unchecked-update-one-without-user.input'; +import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/profile-unchecked-update-one-without-user-nested.input'; @InputType() export class UserUncheckedUpdateWithoutCommentsInput { @@ -33,19 +33,21 @@ export class UserUncheckedUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersInput) - following?: UserUncheckedUpdateManyWithoutFollowersInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingInput) - followers?: UserUncheckedUpdateManyWithoutFollowingInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { + nullable: true, + }) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUncheckedUpdateManyWithoutAuthorInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -60,6 +62,6 @@ export class UserUncheckedUpdateWithoutCommentsInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUncheckedUpdateOneWithoutUserInput; + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-favorite-articles.input.ts b/@generated/user/user-unchecked-update-without-favorite-articles.input.ts index b6c23a7e..04b7676a 100644 --- a/@generated/user/user-unchecked-update-without-favorite-articles.input.ts +++ b/@generated/user/user-unchecked-update-without-favorite-articles.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFollowersInput } from './user-unchecked-update-many-without-followers.input'; +import { UserUncheckedUpdateManyWithoutFollowersNestedInput } from './user-unchecked-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUncheckedUpdateManyWithoutFollowingInput } from './user-unchecked-update-many-without-following.input'; -import { ArticleUncheckedUpdateManyWithoutAuthorInput } from '../article/article-unchecked-update-many-without-author.input'; -import { CommentUncheckedUpdateManyWithoutAuthorInput } from '../comment/comment-unchecked-update-many-without-author.input'; +import { UserUncheckedUpdateManyWithoutFollowingNestedInput } from './user-unchecked-update-many-without-following-nested.input'; +import { ArticleUncheckedUpdateManyWithoutAuthorNestedInput } from '../article/article-unchecked-update-many-without-author-nested.input'; +import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUncheckedUpdateOneWithoutUserInput } from '../profile/profile-unchecked-update-one-without-user.input'; +import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/profile-unchecked-update-one-without-user-nested.input'; @InputType() export class UserUncheckedUpdateWithoutFavoriteArticlesInput { @@ -33,19 +33,19 @@ export class UserUncheckedUpdateWithoutFavoriteArticlesInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersInput) - following?: UserUncheckedUpdateManyWithoutFollowersInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingInput) - followers?: UserUncheckedUpdateManyWithoutFollowingInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUncheckedUpdateManyWithoutAuthorInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutAuthorInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -60,6 +60,6 @@ export class UserUncheckedUpdateWithoutFavoriteArticlesInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUncheckedUpdateOneWithoutUserInput; + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-followers.input.ts b/@generated/user/user-unchecked-update-without-followers.input.ts index 218b3754..f3499e4e 100644 --- a/@generated/user/user-unchecked-update-without-followers.input.ts +++ b/@generated/user/user-unchecked-update-without-followers.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFollowersInput } from './user-unchecked-update-many-without-followers.input'; +import { UserUncheckedUpdateManyWithoutFollowersNestedInput } from './user-unchecked-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { ArticleUncheckedUpdateManyWithoutFavoritedByInput } from '../article/article-unchecked-update-many-without-favorited-by.input'; -import { ArticleUncheckedUpdateManyWithoutAuthorInput } from '../article/article-unchecked-update-many-without-author.input'; -import { CommentUncheckedUpdateManyWithoutAuthorInput } from '../comment/comment-unchecked-update-many-without-author.input'; +import { ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput } from '../article/article-unchecked-update-many-without-favorited-by-nested.input'; +import { ArticleUncheckedUpdateManyWithoutAuthorNestedInput } from '../article/article-unchecked-update-many-without-author-nested.input'; +import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUncheckedUpdateOneWithoutUserInput } from '../profile/profile-unchecked-update-one-without-user.input'; +import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/profile-unchecked-update-one-without-user-nested.input'; @InputType() export class UserUncheckedUpdateWithoutFollowersInput { @@ -33,18 +33,20 @@ export class UserUncheckedUpdateWithoutFollowersInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersInput) - following?: UserUncheckedUpdateManyWithoutFollowersInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { + nullable: true, + }) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUncheckedUpdateManyWithoutAuthorInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutAuthorInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -59,6 +61,6 @@ export class UserUncheckedUpdateWithoutFollowersInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUncheckedUpdateOneWithoutUserInput; + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-following.input.ts b/@generated/user/user-unchecked-update-without-following.input.ts index 9a07b918..c4b958c0 100644 --- a/@generated/user/user-unchecked-update-without-following.input.ts +++ b/@generated/user/user-unchecked-update-without-following.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFollowingInput } from './user-unchecked-update-many-without-following.input'; +import { UserUncheckedUpdateManyWithoutFollowingNestedInput } from './user-unchecked-update-many-without-following-nested.input'; import { Type } from 'class-transformer'; -import { ArticleUncheckedUpdateManyWithoutFavoritedByInput } from '../article/article-unchecked-update-many-without-favorited-by.input'; -import { ArticleUncheckedUpdateManyWithoutAuthorInput } from '../article/article-unchecked-update-many-without-author.input'; -import { CommentUncheckedUpdateManyWithoutAuthorInput } from '../comment/comment-unchecked-update-many-without-author.input'; +import { ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput } from '../article/article-unchecked-update-many-without-favorited-by-nested.input'; +import { ArticleUncheckedUpdateManyWithoutAuthorNestedInput } from '../article/article-unchecked-update-many-without-author-nested.input'; +import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUncheckedUpdateOneWithoutUserInput } from '../profile/profile-unchecked-update-one-without-user.input'; +import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/profile-unchecked-update-one-without-user-nested.input'; @InputType() export class UserUncheckedUpdateWithoutFollowingInput { @@ -33,18 +33,20 @@ export class UserUncheckedUpdateWithoutFollowingInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingInput) - followers?: UserUncheckedUpdateManyWithoutFollowingInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { + nullable: true, + }) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUncheckedUpdateManyWithoutAuthorInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutAuthorInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -59,6 +61,6 @@ export class UserUncheckedUpdateWithoutFollowingInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUncheckedUpdateOneWithoutUserInput; + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-unchecked-update-without-profile.input.ts b/@generated/user/user-unchecked-update-without-profile.input.ts index c44b1c45..9cfdb1ed 100644 --- a/@generated/user/user-unchecked-update-without-profile.input.ts +++ b/@generated/user/user-unchecked-update-without-profile.input.ts @@ -2,12 +2,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFollowersInput } from './user-unchecked-update-many-without-followers.input'; +import { UserUncheckedUpdateManyWithoutFollowersNestedInput } from './user-unchecked-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUncheckedUpdateManyWithoutFollowingInput } from './user-unchecked-update-many-without-following.input'; -import { ArticleUncheckedUpdateManyWithoutFavoritedByInput } from '../article/article-unchecked-update-many-without-favorited-by.input'; -import { ArticleUncheckedUpdateManyWithoutAuthorInput } from '../article/article-unchecked-update-many-without-author.input'; -import { CommentUncheckedUpdateManyWithoutAuthorInput } from '../comment/comment-unchecked-update-many-without-author.input'; +import { UserUncheckedUpdateManyWithoutFollowingNestedInput } from './user-unchecked-update-many-without-following-nested.input'; +import { ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput } from '../article/article-unchecked-update-many-without-favorited-by-nested.input'; +import { ArticleUncheckedUpdateManyWithoutAuthorNestedInput } from '../article/article-unchecked-update-many-without-author-nested.input'; +import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; @@ -33,22 +33,24 @@ export class UserUncheckedUpdateWithoutProfileInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersInput) - following?: UserUncheckedUpdateManyWithoutFollowersInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingInput) - followers?: UserUncheckedUpdateManyWithoutFollowingInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { + nullable: true, + }) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUncheckedUpdateManyWithoutAuthorInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutAuthorInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; diff --git a/@generated/user/user-unchecked-update.input.ts b/@generated/user/user-unchecked-update.input.ts index eb988d4a..3bc0dbaa 100644 --- a/@generated/user/user-unchecked-update.input.ts +++ b/@generated/user/user-unchecked-update.input.ts @@ -2,17 +2,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUncheckedUpdateManyWithoutFollowersInput } from './user-unchecked-update-many-without-followers.input'; +import { UserUncheckedUpdateManyWithoutFollowersNestedInput } from './user-unchecked-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUncheckedUpdateManyWithoutFollowingInput } from './user-unchecked-update-many-without-following.input'; -import { ArticleUncheckedUpdateManyWithoutFavoritedByInput } from '../article/article-unchecked-update-many-without-favorited-by.input'; -import { ArticleUncheckedUpdateManyWithoutAuthorInput } from '../article/article-unchecked-update-many-without-author.input'; -import { CommentUncheckedUpdateManyWithoutAuthorInput } from '../comment/comment-unchecked-update-many-without-author.input'; +import { UserUncheckedUpdateManyWithoutFollowingNestedInput } from './user-unchecked-update-many-without-following-nested.input'; +import { ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput } from '../article/article-unchecked-update-many-without-favorited-by-nested.input'; +import { ArticleUncheckedUpdateManyWithoutAuthorNestedInput } from '../article/article-unchecked-update-many-without-author-nested.input'; +import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUncheckedUpdateOneWithoutUserInput } from '../profile/profile-unchecked-update-one-without-user.input'; +import { ProfileUncheckedUpdateOneWithoutUserNestedInput } from '../profile/profile-unchecked-update-one-without-user-nested.input'; @InputType() export class UserUncheckedUpdateInput { @@ -34,22 +34,24 @@ export class UserUncheckedUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowersInput) - following?: UserUncheckedUpdateManyWithoutFollowersInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowersNestedInput) + following?: UserUncheckedUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUncheckedUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUncheckedUpdateManyWithoutFollowingInput) - followers?: UserUncheckedUpdateManyWithoutFollowingInput; + @Field(() => UserUncheckedUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUncheckedUpdateManyWithoutFollowingNestedInput) + followers?: UserUncheckedUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput, { + nullable: true, + }) + favoriteArticles?: ArticleUncheckedUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUncheckedUpdateManyWithoutAuthorInput; + @Field(() => ArticleUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUncheckedUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUncheckedUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUncheckedUpdateManyWithoutAuthorInput; + @Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -64,6 +66,6 @@ export class UserUncheckedUpdateInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUncheckedUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUncheckedUpdateOneWithoutUserInput; + @Field(() => ProfileUncheckedUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUncheckedUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-many-without-favorite-articles.input.ts b/@generated/user/user-update-many-without-favorite-articles-nested.input.ts similarity index 97% rename from @generated/user/user-update-many-without-favorite-articles.input.ts rename to @generated/user/user-update-many-without-favorite-articles-nested.input.ts index 42ab6656..2b615b19 100644 --- a/@generated/user/user-update-many-without-favorite-articles.input.ts +++ b/@generated/user/user-update-many-without-favorite-articles-nested.input.ts @@ -10,7 +10,7 @@ import { UserUpdateManyWithWhereWithoutFavoriteArticlesInput } from './user-upda import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() -export class UserUpdateManyWithoutFavoriteArticlesInput { +export class UserUpdateManyWithoutFavoriteArticlesNestedInput { @Field(() => [UserCreateWithoutFavoriteArticlesInput], { nullable: true }) @Type(() => UserCreateWithoutFavoriteArticlesInput) create?: Array; diff --git a/@generated/user/user-update-many-without-followers.input.ts b/@generated/user/user-update-many-without-followers-nested.input.ts similarity index 97% rename from @generated/user/user-update-many-without-followers.input.ts rename to @generated/user/user-update-many-without-followers-nested.input.ts index 8acb397c..2c4254af 100644 --- a/@generated/user/user-update-many-without-followers.input.ts +++ b/@generated/user/user-update-many-without-followers-nested.input.ts @@ -10,7 +10,7 @@ import { UserUpdateManyWithWhereWithoutFollowersInput } from './user-update-many import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() -export class UserUpdateManyWithoutFollowersInput { +export class UserUpdateManyWithoutFollowersNestedInput { @Field(() => [UserCreateWithoutFollowersInput], { nullable: true }) @Type(() => UserCreateWithoutFollowersInput) create?: Array; diff --git a/@generated/user/user-update-many-without-following.input.ts b/@generated/user/user-update-many-without-following-nested.input.ts similarity index 97% rename from @generated/user/user-update-many-without-following.input.ts rename to @generated/user/user-update-many-without-following-nested.input.ts index 4749924e..b689ce35 100644 --- a/@generated/user/user-update-many-without-following.input.ts +++ b/@generated/user/user-update-many-without-following-nested.input.ts @@ -10,7 +10,7 @@ import { UserUpdateManyWithWhereWithoutFollowingInput } from './user-update-many import { UserScalarWhereInput } from './user-scalar-where.input'; @InputType() -export class UserUpdateManyWithoutFollowingInput { +export class UserUpdateManyWithoutFollowingNestedInput { @Field(() => [UserCreateWithoutFollowingInput], { nullable: true }) @Type(() => UserCreateWithoutFollowingInput) create?: Array; diff --git a/@generated/user/user-update-one-required-without-articles.input.ts b/@generated/user/user-update-one-required-without-articles-nested.input.ts similarity index 95% rename from @generated/user/user-update-one-required-without-articles.input.ts rename to @generated/user/user-update-one-required-without-articles-nested.input.ts index 7de2938b..4103de66 100644 --- a/@generated/user/user-update-one-required-without-articles.input.ts +++ b/@generated/user/user-update-one-required-without-articles-nested.input.ts @@ -8,7 +8,7 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; import { UserUpdateWithoutArticlesInput } from './user-update-without-articles.input'; @InputType() -export class UserUpdateOneRequiredWithoutArticlesInput { +export class UserUpdateOneRequiredWithoutArticlesNestedInput { @Field(() => UserCreateWithoutArticlesInput, { nullable: true }) @Type(() => UserCreateWithoutArticlesInput) create?: UserCreateWithoutArticlesInput; diff --git a/@generated/user/user-update-one-required-without-comments.input.ts b/@generated/user/user-update-one-required-without-comments-nested.input.ts similarity index 95% rename from @generated/user/user-update-one-required-without-comments.input.ts rename to @generated/user/user-update-one-required-without-comments-nested.input.ts index 1254ecc1..6114952e 100644 --- a/@generated/user/user-update-one-required-without-comments.input.ts +++ b/@generated/user/user-update-one-required-without-comments-nested.input.ts @@ -8,7 +8,7 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; import { UserUpdateWithoutCommentsInput } from './user-update-without-comments.input'; @InputType() -export class UserUpdateOneRequiredWithoutCommentsInput { +export class UserUpdateOneRequiredWithoutCommentsNestedInput { @Field(() => UserCreateWithoutCommentsInput, { nullable: true }) @Type(() => UserCreateWithoutCommentsInput) create?: UserCreateWithoutCommentsInput; diff --git a/@generated/user/user-update-one-required-without-profile.input.ts b/@generated/user/user-update-one-required-without-profile-nested.input.ts similarity index 95% rename from @generated/user/user-update-one-required-without-profile.input.ts rename to @generated/user/user-update-one-required-without-profile-nested.input.ts index b2fd7253..1707764a 100644 --- a/@generated/user/user-update-one-required-without-profile.input.ts +++ b/@generated/user/user-update-one-required-without-profile-nested.input.ts @@ -8,7 +8,7 @@ import { UserWhereUniqueInput } from './user-where-unique.input'; import { UserUpdateWithoutProfileInput } from './user-update-without-profile.input'; @InputType() -export class UserUpdateOneRequiredWithoutProfileInput { +export class UserUpdateOneRequiredWithoutProfileNestedInput { @Field(() => UserCreateWithoutProfileInput, { nullable: true }) @Type(() => UserCreateWithoutProfileInput) create?: UserCreateWithoutProfileInput; diff --git a/@generated/user/user-update-without-articles.input.ts b/@generated/user/user-update-without-articles.input.ts index a2b71f60..0f8e4906 100644 --- a/@generated/user/user-update-without-articles.input.ts +++ b/@generated/user/user-update-without-articles.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUpdateManyWithoutFollowersInput } from './user-update-many-without-followers.input'; +import { UserUpdateManyWithoutFollowersNestedInput } from './user-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUpdateManyWithoutFollowingInput } from './user-update-many-without-following.input'; -import { ArticleUpdateManyWithoutFavoritedByInput } from '../article/article-update-many-without-favorited-by.input'; -import { CommentUpdateManyWithoutAuthorInput } from '../comment/comment-update-many-without-author.input'; +import { UserUpdateManyWithoutFollowingNestedInput } from './user-update-many-without-following-nested.input'; +import { ArticleUpdateManyWithoutFavoritedByNestedInput } from '../article/article-update-many-without-favorited-by-nested.input'; +import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUpdateOneWithoutUserInput } from '../profile/profile-update-one-without-user.input'; +import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-update-one-without-user-nested.input'; @InputType() export class UserUpdateWithoutArticlesInput { @@ -33,19 +33,19 @@ export class UserUpdateWithoutArticlesInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersInput) - following?: UserUpdateManyWithoutFollowersInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingInput) - followers?: UserUpdateManyWithoutFollowingInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUpdateManyWithoutAuthorInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -60,6 +60,6 @@ export class UserUpdateWithoutArticlesInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUpdateOneWithoutUserInput; + @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-comments.input.ts b/@generated/user/user-update-without-comments.input.ts index 1810c127..d7b867c6 100644 --- a/@generated/user/user-update-without-comments.input.ts +++ b/@generated/user/user-update-without-comments.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUpdateManyWithoutFollowersInput } from './user-update-many-without-followers.input'; +import { UserUpdateManyWithoutFollowersNestedInput } from './user-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUpdateManyWithoutFollowingInput } from './user-update-many-without-following.input'; -import { ArticleUpdateManyWithoutFavoritedByInput } from '../article/article-update-many-without-favorited-by.input'; -import { ArticleUpdateManyWithoutAuthorInput } from '../article/article-update-many-without-author.input'; +import { UserUpdateManyWithoutFollowingNestedInput } from './user-update-many-without-following-nested.input'; +import { ArticleUpdateManyWithoutFavoritedByNestedInput } from '../article/article-update-many-without-favorited-by-nested.input'; +import { ArticleUpdateManyWithoutAuthorNestedInput } from '../article/article-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUpdateOneWithoutUserInput } from '../profile/profile-update-one-without-user.input'; +import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-update-one-without-user-nested.input'; @InputType() export class UserUpdateWithoutCommentsInput { @@ -33,19 +33,19 @@ export class UserUpdateWithoutCommentsInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersInput) - following?: UserUpdateManyWithoutFollowersInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingInput) - followers?: UserUpdateManyWithoutFollowingInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUpdateManyWithoutAuthorInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -60,6 +60,6 @@ export class UserUpdateWithoutCommentsInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUpdateOneWithoutUserInput; + @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-favorite-articles.input.ts b/@generated/user/user-update-without-favorite-articles.input.ts index d90c9a9d..259dca3e 100644 --- a/@generated/user/user-update-without-favorite-articles.input.ts +++ b/@generated/user/user-update-without-favorite-articles.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUpdateManyWithoutFollowersInput } from './user-update-many-without-followers.input'; +import { UserUpdateManyWithoutFollowersNestedInput } from './user-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUpdateManyWithoutFollowingInput } from './user-update-many-without-following.input'; -import { ArticleUpdateManyWithoutAuthorInput } from '../article/article-update-many-without-author.input'; -import { CommentUpdateManyWithoutAuthorInput } from '../comment/comment-update-many-without-author.input'; +import { UserUpdateManyWithoutFollowingNestedInput } from './user-update-many-without-following-nested.input'; +import { ArticleUpdateManyWithoutAuthorNestedInput } from '../article/article-update-many-without-author-nested.input'; +import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUpdateOneWithoutUserInput } from '../profile/profile-update-one-without-user.input'; +import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-update-one-without-user-nested.input'; @InputType() export class UserUpdateWithoutFavoriteArticlesInput { @@ -33,19 +33,19 @@ export class UserUpdateWithoutFavoriteArticlesInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersInput) - following?: UserUpdateManyWithoutFollowersInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingInput) - followers?: UserUpdateManyWithoutFollowingInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUpdateManyWithoutAuthorInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUpdateManyWithoutAuthorInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -60,6 +60,6 @@ export class UserUpdateWithoutFavoriteArticlesInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUpdateOneWithoutUserInput; + @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-followers.input.ts b/@generated/user/user-update-without-followers.input.ts index 744b4430..b658da41 100644 --- a/@generated/user/user-update-without-followers.input.ts +++ b/@generated/user/user-update-without-followers.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUpdateManyWithoutFollowersInput } from './user-update-many-without-followers.input'; +import { UserUpdateManyWithoutFollowersNestedInput } from './user-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { ArticleUpdateManyWithoutFavoritedByInput } from '../article/article-update-many-without-favorited-by.input'; -import { ArticleUpdateManyWithoutAuthorInput } from '../article/article-update-many-without-author.input'; -import { CommentUpdateManyWithoutAuthorInput } from '../comment/comment-update-many-without-author.input'; +import { ArticleUpdateManyWithoutFavoritedByNestedInput } from '../article/article-update-many-without-favorited-by-nested.input'; +import { ArticleUpdateManyWithoutAuthorNestedInput } from '../article/article-update-many-without-author-nested.input'; +import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUpdateOneWithoutUserInput } from '../profile/profile-update-one-without-user.input'; +import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-update-one-without-user-nested.input'; @InputType() export class UserUpdateWithoutFollowersInput { @@ -33,18 +33,18 @@ export class UserUpdateWithoutFollowersInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersInput) - following?: UserUpdateManyWithoutFollowersInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUpdateManyWithoutAuthorInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUpdateManyWithoutAuthorInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -59,6 +59,6 @@ export class UserUpdateWithoutFollowersInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUpdateOneWithoutUserInput; + @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-following.input.ts b/@generated/user/user-update-without-following.input.ts index 530421d6..0c83483a 100644 --- a/@generated/user/user-update-without-following.input.ts +++ b/@generated/user/user-update-without-following.input.ts @@ -2,16 +2,16 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUpdateManyWithoutFollowingInput } from './user-update-many-without-following.input'; +import { UserUpdateManyWithoutFollowingNestedInput } from './user-update-many-without-following-nested.input'; import { Type } from 'class-transformer'; -import { ArticleUpdateManyWithoutFavoritedByInput } from '../article/article-update-many-without-favorited-by.input'; -import { ArticleUpdateManyWithoutAuthorInput } from '../article/article-update-many-without-author.input'; -import { CommentUpdateManyWithoutAuthorInput } from '../comment/comment-update-many-without-author.input'; +import { ArticleUpdateManyWithoutFavoritedByNestedInput } from '../article/article-update-many-without-favorited-by-nested.input'; +import { ArticleUpdateManyWithoutAuthorNestedInput } from '../article/article-update-many-without-author-nested.input'; +import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUpdateOneWithoutUserInput } from '../profile/profile-update-one-without-user.input'; +import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-update-one-without-user-nested.input'; @InputType() export class UserUpdateWithoutFollowingInput { @@ -33,18 +33,18 @@ export class UserUpdateWithoutFollowingInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingInput) - followers?: UserUpdateManyWithoutFollowingInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUpdateManyWithoutAuthorInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUpdateManyWithoutAuthorInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -59,6 +59,6 @@ export class UserUpdateWithoutFollowingInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUpdateOneWithoutUserInput; + @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/@generated/user/user-update-without-profile.input.ts b/@generated/user/user-update-without-profile.input.ts index 18bdebb4..9803d8b2 100644 --- a/@generated/user/user-update-without-profile.input.ts +++ b/@generated/user/user-update-without-profile.input.ts @@ -2,12 +2,12 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUpdateManyWithoutFollowersInput } from './user-update-many-without-followers.input'; +import { UserUpdateManyWithoutFollowersNestedInput } from './user-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUpdateManyWithoutFollowingInput } from './user-update-many-without-following.input'; -import { ArticleUpdateManyWithoutFavoritedByInput } from '../article/article-update-many-without-favorited-by.input'; -import { ArticleUpdateManyWithoutAuthorInput } from '../article/article-update-many-without-author.input'; -import { CommentUpdateManyWithoutAuthorInput } from '../comment/comment-update-many-without-author.input'; +import { UserUpdateManyWithoutFollowingNestedInput } from './user-update-many-without-following-nested.input'; +import { ArticleUpdateManyWithoutFavoritedByNestedInput } from '../article/article-update-many-without-favorited-by-nested.input'; +import { ArticleUpdateManyWithoutAuthorNestedInput } from '../article/article-update-many-without-author-nested.input'; +import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; @@ -33,22 +33,22 @@ export class UserUpdateWithoutProfileInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersInput) - following?: UserUpdateManyWithoutFollowersInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingInput) - followers?: UserUpdateManyWithoutFollowingInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUpdateManyWithoutAuthorInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUpdateManyWithoutAuthorInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; diff --git a/@generated/user/user-update.input.ts b/@generated/user/user-update.input.ts index 60d333d2..d92cc4c2 100644 --- a/@generated/user/user-update.input.ts +++ b/@generated/user/user-update.input.ts @@ -2,17 +2,17 @@ import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input'; import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input'; -import { UserUpdateManyWithoutFollowersInput } from './user-update-many-without-followers.input'; +import { UserUpdateManyWithoutFollowersNestedInput } from './user-update-many-without-followers-nested.input'; import { Type } from 'class-transformer'; -import { UserUpdateManyWithoutFollowingInput } from './user-update-many-without-following.input'; -import { ArticleUpdateManyWithoutFavoritedByInput } from '../article/article-update-many-without-favorited-by.input'; -import { ArticleUpdateManyWithoutAuthorInput } from '../article/article-update-many-without-author.input'; -import { CommentUpdateManyWithoutAuthorInput } from '../comment/comment-update-many-without-author.input'; +import { UserUpdateManyWithoutFollowingNestedInput } from './user-update-many-without-following-nested.input'; +import { ArticleUpdateManyWithoutFavoritedByNestedInput } from '../article/article-update-many-without-favorited-by-nested.input'; +import { ArticleUpdateManyWithoutAuthorNestedInput } from '../article/article-update-many-without-author-nested.input'; +import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input'; import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input'; import { NullableFloatFieldUpdateOperationsInput } from '../prisma/nullable-float-field-update-operations.input'; import { NullableDecimalFieldUpdateOperationsInput } from '../prisma/nullable-decimal-field-update-operations.input'; import { NullableEnumRoleFieldUpdateOperationsInput } from '../prisma/nullable-enum-role-field-update-operations.input'; -import { ProfileUpdateOneWithoutUserInput } from '../profile/profile-update-one-without-user.input'; +import { ProfileUpdateOneWithoutUserNestedInput } from '../profile/profile-update-one-without-user-nested.input'; @InputType() export class UserUpdateInput { @@ -34,22 +34,22 @@ export class UserUpdateInput { @Field(() => NullableStringFieldUpdateOperationsInput, { nullable: true }) image?: NullableStringFieldUpdateOperationsInput; - @Field(() => UserUpdateManyWithoutFollowersInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowersInput) - following?: UserUpdateManyWithoutFollowersInput; + @Field(() => UserUpdateManyWithoutFollowersNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowersNestedInput) + following?: UserUpdateManyWithoutFollowersNestedInput; - @Field(() => UserUpdateManyWithoutFollowingInput, { nullable: true }) - @Type(() => UserUpdateManyWithoutFollowingInput) - followers?: UserUpdateManyWithoutFollowingInput; + @Field(() => UserUpdateManyWithoutFollowingNestedInput, { nullable: true }) + @Type(() => UserUpdateManyWithoutFollowingNestedInput) + followers?: UserUpdateManyWithoutFollowingNestedInput; - @Field(() => ArticleUpdateManyWithoutFavoritedByInput, { nullable: true }) - favoriteArticles?: ArticleUpdateManyWithoutFavoritedByInput; + @Field(() => ArticleUpdateManyWithoutFavoritedByNestedInput, { nullable: true }) + favoriteArticles?: ArticleUpdateManyWithoutFavoritedByNestedInput; - @Field(() => ArticleUpdateManyWithoutAuthorInput, { nullable: true }) - articles?: ArticleUpdateManyWithoutAuthorInput; + @Field(() => ArticleUpdateManyWithoutAuthorNestedInput, { nullable: true }) + articles?: ArticleUpdateManyWithoutAuthorNestedInput; - @Field(() => CommentUpdateManyWithoutAuthorInput, { nullable: true }) - comments?: CommentUpdateManyWithoutAuthorInput; + @Field(() => CommentUpdateManyWithoutAuthorNestedInput, { nullable: true }) + comments?: CommentUpdateManyWithoutAuthorNestedInput; @Field(() => NullableIntFieldUpdateOperationsInput, { nullable: true }) countComments?: NullableIntFieldUpdateOperationsInput; @@ -64,6 +64,6 @@ export class UserUpdateInput { @Field(() => NullableEnumRoleFieldUpdateOperationsInput, { nullable: true }) role?: NullableEnumRoleFieldUpdateOperationsInput; - @Field(() => ProfileUpdateOneWithoutUserInput, { nullable: true }) - profile?: ProfileUpdateOneWithoutUserInput; + @Field(() => ProfileUpdateOneWithoutUserNestedInput, { nullable: true }) + profile?: ProfileUpdateOneWithoutUserNestedInput; } diff --git a/package.json b/package.json index 3cc12e42..cae9dc12 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ } }, "dependencies": { - "@prisma/generator-helper": "^3.14.0", + "@prisma/generator-helper": "^4.0.0", "await-event-emitter": "^2.0.2", "filenamify": "4.X", "flat": "^5.0.2", @@ -73,7 +73,7 @@ "@nestjs/graphql": "^10.0.12", "@nestjs/platform-express": "^8.4.5", "@paljs/plugins": "^4.1.0", - "@prisma/client": "^3.14.0", + "@prisma/client": "^4.0.0", "@semantic-release/changelog": "^6.0.1", "@semantic-release/git": "^10.0.1", "@swc/core": "^1.2.189", @@ -114,7 +114,7 @@ "ololog": "^1.1.175", "precise-commits": "^1.0.2", "prettier": "^2.6.2", - "prisma": "^3.14.0", + "prisma": "^4.0.0", "prisma-graphql-type-decimal": "^2.0.2", "reflect-metadata": "^0.1.13", "request": "^2.88.2", diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 6eb93287..37c33e2b 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -5,7 +5,7 @@ datasource database { generator client { provider = "prisma-client-js" - previewFeatures = ["filterJson", "fullTextSearch"] + previewFeatures = ["fullTextSearch"] } generator nestgraphql { @@ -54,9 +54,9 @@ model User { password String bio String? image String? - following User[] @relation("UserFollows", references: [id]) - followers User[] @relation("UserFollows", references: [id]) - favoriteArticles Article[] @relation(name: "FavoritedArticles", references: [id]) + following User[] @relation("UserFollows") + followers User[] @relation("UserFollows") + favoriteArticles Article[] @relation(name: "FavoritedArticles") articles Article[] @relation("ArticleAuthor") comments Comment[] countComments Int? @@ -87,7 +87,7 @@ model Article { favoritesCount Int @default(0) author User @relation(name: "ArticleAuthor", fields: [authorId], references: [id]) authorId String - favoritedBy User[] @relation(name: "FavoritedArticles", references: [id]) + favoritedBy User[] @relation(name: "FavoritedArticles") comments Comment[] active Boolean? @default(true) } diff --git a/src/test/decimal.spec.ts b/src/test/decimal.spec.ts index b27bc1b9..f6369b3e 100644 --- a/src/test/decimal.spec.ts +++ b/src/test/decimal.spec.ts @@ -346,13 +346,13 @@ describe('nested object decorate', () => { model Job { id Int @id salaryId Int? - salary Salary? @relation(fields: [salaryId], references: [id], onDelete: Cascade) + salary Salary? @relation(fields: [salaryId], references: [id], onDelete: Cascade) } model Salary { id Int @id from Decimal to Decimal - job Job[] + job Job[] } `, options: ` @@ -391,7 +391,7 @@ describe('nested object decorate', () => { it(property, () => { const s = testSourceFile({ project, - class: 'JobUncheckedUpdateManyWithoutSalaryInput', + class: 'JobUncheckedUpdateManyWithoutSalaryNestedInput', property, }); diff --git a/src/test/generate.spec.ts b/src/test/generate.spec.ts index c6713853..e95be9d4 100644 --- a/src/test/generate.spec.ts +++ b/src/test/generate.spec.ts @@ -642,12 +642,16 @@ describe('nullish compatibility', () => { id Int @id User User? @relation(fields: [userId], references: [id]) userId String? + + @@unique([userId]) } model Profile { id Int @id @default(autoincrement()) user User @relation(fields: [userId], references: [id]) userId String - dummy String? + dummy String? + + @@unique([userId]) } enum Role { USER @@ -2338,6 +2342,8 @@ describe('non list optional properties should be nullable', () => { id String @id user User? @relation(fields: [userId], references: [id]) userId String? + + @@unique([userId]) } model Article { id String @id diff --git a/src/test/test-generate.ts b/src/test/test-generate.ts index 61a86e78..eb047ed1 100644 --- a/src/test/test-generate.ts +++ b/src/test/test-generate.ts @@ -121,7 +121,7 @@ async function createGeneratorOptions( } generator client { provider = "prisma-client-js" - previewFeatures = ["filterJson", "fullTextSearch", "referentialIntegrity", "extendedIndexes", "fullTextIndex"] + previewFeatures = ["fullTextSearch", "referentialIntegrity", "fullTextIndex"] } `; // eslint-disable-next-line prefer-rest-params