Skip to content

Commit

Permalink
fix: Decorate parent decimal inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed May 23, 2022
1 parent 60df749 commit 9a7da40
Show file tree
Hide file tree
Showing 111 changed files with 702 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class ArticleCreateNestedManyWithoutAuthorInput {
connectOrCreate?: Array<ArticleCreateOrConnectWithoutAuthorInput>;

@Field(() => ArticleCreateManyAuthorInputEnvelope, { nullable: true })
@Type(() => ArticleCreateManyAuthorInputEnvelope)
createMany?: ArticleCreateManyAuthorInputEnvelope;

@Field(() => [ArticleWhereUniqueInput], { nullable: true })
Expand Down
2 changes: 2 additions & 0 deletions @generated/article/article-create-without-author.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { TagCreateNestedManyWithoutArticlesInput } from '../tag/tag-create-neste
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-create-nested-many-without-favorite-articles.input';
import { Type } from 'class-transformer';
import { CommentCreateNestedManyWithoutArticleInput } from '../comment/comment-create-nested-many-without-article.input';

@InputType()
Expand Down Expand Up @@ -36,6 +37,7 @@ export class ArticleCreateWithoutAuthorInput {
favoritesCount?: number;

@Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput)
favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput;

@Field(() => CommentCreateNestedManyWithoutArticleInput, { nullable: true })
Expand Down
3 changes: 3 additions & 0 deletions @generated/article/article-create-without-comments.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { TagCreateNestedManyWithoutArticlesInput } from '../tag/tag-create-neste
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserCreateNestedOneWithoutArticlesInput } from '../user/user-create-nested-one-without-articles.input';
import { Type } from 'class-transformer';
import { UserCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-create-nested-many-without-favorite-articles.input';

@InputType()
Expand Down Expand Up @@ -36,9 +37,11 @@ export class ArticleCreateWithoutCommentsInput {
favoritesCount?: number;

@Field(() => UserCreateNestedOneWithoutArticlesInput, { nullable: false })
@Type(() => UserCreateNestedOneWithoutArticlesInput)
author!: UserCreateNestedOneWithoutArticlesInput;

@Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput)
favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput;

@Field(() => Boolean, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { TagCreateNestedManyWithoutArticlesInput } from '../tag/tag-create-neste
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserCreateNestedOneWithoutArticlesInput } from '../user/user-create-nested-one-without-articles.input';
import { Type } from 'class-transformer';
import { CommentCreateNestedManyWithoutArticleInput } from '../comment/comment-create-nested-many-without-article.input';

@InputType()
Expand Down Expand Up @@ -36,6 +37,7 @@ export class ArticleCreateWithoutFavoritedByInput {
favoritesCount?: number;

@Field(() => UserCreateNestedOneWithoutArticlesInput, { nullable: false })
@Type(() => UserCreateNestedOneWithoutArticlesInput)
author!: UserCreateNestedOneWithoutArticlesInput;

@Field(() => CommentCreateNestedManyWithoutArticleInput, { nullable: true })
Expand Down
3 changes: 3 additions & 0 deletions @generated/article/article-create-without-tags.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserCreateNestedOneWithoutArticlesInput } from '../user/user-create-nested-one-without-articles.input';
import { Type } from 'class-transformer';
import { UserCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-create-nested-many-without-favorite-articles.input';
import { CommentCreateNestedManyWithoutArticleInput } from '../comment/comment-create-nested-many-without-article.input';

Expand Down Expand Up @@ -33,9 +34,11 @@ export class ArticleCreateWithoutTagsInput {
favoritesCount?: number;

@Field(() => UserCreateNestedOneWithoutArticlesInput, { nullable: false })
@Type(() => UserCreateNestedOneWithoutArticlesInput)
author!: UserCreateNestedOneWithoutArticlesInput;

@Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput)
favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput;

@Field(() => CommentCreateNestedManyWithoutArticleInput, { nullable: true })
Expand Down
3 changes: 3 additions & 0 deletions @generated/article/article-create.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { TagCreateNestedManyWithoutArticlesInput } from '../tag/tag-create-neste
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserCreateNestedOneWithoutArticlesInput } from '../user/user-create-nested-one-without-articles.input';
import { Type } from 'class-transformer';
import { UserCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-create-nested-many-without-favorite-articles.input';
import { CommentCreateNestedManyWithoutArticleInput } from '../comment/comment-create-nested-many-without-article.input';

Expand Down Expand Up @@ -37,9 +38,11 @@ export class ArticleCreateInput {
favoritesCount?: number;

@Field(() => UserCreateNestedOneWithoutArticlesInput, { nullable: false })
@Type(() => UserCreateNestedOneWithoutArticlesInput)
author!: UserCreateNestedOneWithoutArticlesInput;

@Field(() => UserCreateNestedManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserCreateNestedManyWithoutFavoriteArticlesInput)
favoritedBy?: UserCreateNestedManyWithoutFavoriteArticlesInput;

@Field(() => CommentCreateNestedManyWithoutArticleInput, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { TagOrderByRelationAggregateInput } from '../tag/tag-order-by-relation-aggregate.input';
import { UserOrderByWithRelationAndSearchRelevanceInput } from '../user/user-order-by-with-relation-and-search-relevance.input';
import { Type } from 'class-transformer';
import { UserOrderByRelationAggregateInput } from '../user/user-order-by-relation-aggregate.input';
import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input';
import { ArticleOrderByRelevanceInput } from './article-order-by-relevance.input';
Expand Down Expand Up @@ -37,12 +38,14 @@ export class ArticleOrderByWithRelationAndSearchRelevanceInput {
favoritesCount?: keyof typeof SortOrder;

@Field(() => UserOrderByWithRelationAndSearchRelevanceInput, { nullable: true })
@Type(() => UserOrderByWithRelationAndSearchRelevanceInput)
author?: UserOrderByWithRelationAndSearchRelevanceInput;

@Field(() => SortOrder, { nullable: true })
authorId?: keyof typeof SortOrder;

@Field(() => UserOrderByRelationAggregateInput, { nullable: true })
@Type(() => UserOrderByRelationAggregateInput)
favoritedBy?: UserOrderByRelationAggregateInput;

@Field(() => CommentOrderByRelationAggregateInput, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class ArticleUncheckedCreateNestedManyWithoutAuthorInput {
connectOrCreate?: Array<ArticleCreateOrConnectWithoutAuthorInput>;

@Field(() => ArticleCreateManyAuthorInputEnvelope, { nullable: true })
@Type(() => ArticleCreateManyAuthorInputEnvelope)
createMany?: ArticleCreateManyAuthorInputEnvelope;

@Field(() => [ArticleWhereUniqueInput], { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { TagUncheckedCreateNestedManyWithoutArticlesInput } from '../tag/tag-unc
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-unchecked-create-nested-many-without-favorite-articles.input';
import { Type } from 'class-transformer';
import { CommentUncheckedCreateNestedManyWithoutArticleInput } from '../comment/comment-unchecked-create-nested-many-without-article.input';

@InputType()
Expand Down Expand Up @@ -38,6 +39,7 @@ export class ArticleUncheckedCreateWithoutAuthorInput {
@Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, {
nullable: true,
})
@Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput;

@Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { TagUncheckedCreateNestedManyWithoutArticlesInput } from '../tag/tag-unc
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-unchecked-create-nested-many-without-favorite-articles.input';
import { Type } from 'class-transformer';

@InputType()
export class ArticleUncheckedCreateWithoutCommentsInput {
Expand Down Expand Up @@ -40,6 +41,7 @@ export class ArticleUncheckedCreateWithoutCommentsInput {
@Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, {
nullable: true,
})
@Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput;

@Field(() => Boolean, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-unchecked-create-nested-many-without-favorite-articles.input';
import { Type } from 'class-transformer';
import { CommentUncheckedCreateNestedManyWithoutArticleInput } from '../comment/comment-unchecked-create-nested-many-without-article.input';

@InputType()
Expand Down Expand Up @@ -37,6 +38,7 @@ export class ArticleUncheckedCreateWithoutTagsInput {
@Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, {
nullable: true,
})
@Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput;

@Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, { nullable: true })
Expand Down
2 changes: 2 additions & 0 deletions @generated/article/article-unchecked-create.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { TagUncheckedCreateNestedManyWithoutArticlesInput } from '../tag/tag-unc
import { HideField } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput } from '../user/user-unchecked-create-nested-many-without-favorite-articles.input';
import { Type } from 'class-transformer';
import { CommentUncheckedCreateNestedManyWithoutArticleInput } from '../comment/comment-unchecked-create-nested-many-without-article.input';

@InputType()
Expand Down Expand Up @@ -41,6 +42,7 @@ export class ArticleUncheckedCreateInput {
@Field(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput, {
nullable: true,
})
@Type(() => UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUncheckedCreateNestedManyWithoutFavoriteArticlesInput;

@Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class ArticleUncheckedUpdateManyWithoutAuthorInput {
upsert?: Array<ArticleUpsertWithWhereUniqueWithoutAuthorInput>;

@Field(() => ArticleCreateManyAuthorInputEnvelope, { nullable: true })
@Type(() => ArticleCreateManyAuthorInputEnvelope)
createMany?: ArticleCreateManyAuthorInputEnvelope;

@Field(() => [ArticleWhereUniqueInput], { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TagUncheckedUpdateManyWithoutArticlesInput } from '../tag/tag-unchecked
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 { Type } from 'class-transformer';
import { CommentUncheckedUpdateManyWithoutArticleInput } from '../comment/comment-unchecked-update-many-without-article.input';
import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input';

Expand Down Expand Up @@ -38,6 +39,7 @@ export class ArticleUncheckedUpdateWithoutAuthorInput {
favoritesCount?: IntFieldUpdateOperationsInput;

@Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesInput;

@Field(() => CommentUncheckedUpdateManyWithoutArticleInput, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TagUncheckedUpdateManyWithoutArticlesInput } from '../tag/tag-unchecked
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 { Type } from 'class-transformer';
import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input';

@InputType()
Expand Down Expand Up @@ -40,6 +41,7 @@ export class ArticleUncheckedUpdateWithoutCommentsInput {
authorId?: StringFieldUpdateOperationsInput;

@Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesInput;

@Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-
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 { Type } from 'class-transformer';
import { CommentUncheckedUpdateManyWithoutArticleInput } from '../comment/comment-unchecked-update-many-without-article.input';
import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input';

Expand Down Expand Up @@ -37,6 +38,7 @@ export class ArticleUncheckedUpdateWithoutTagsInput {
authorId?: StringFieldUpdateOperationsInput;

@Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesInput;

@Field(() => CommentUncheckedUpdateManyWithoutArticleInput, { nullable: true })
Expand Down
2 changes: 2 additions & 0 deletions @generated/article/article-unchecked-update.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TagUncheckedUpdateManyWithoutArticlesInput } from '../tag/tag-unchecked
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 { Type } from 'class-transformer';
import { CommentUncheckedUpdateManyWithoutArticleInput } from '../comment/comment-unchecked-update-many-without-article.input';
import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input';

Expand Down Expand Up @@ -41,6 +42,7 @@ export class ArticleUncheckedUpdateInput {
authorId?: StringFieldUpdateOperationsInput;

@Field(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserUncheckedUpdateManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUncheckedUpdateManyWithoutFavoriteArticlesInput;

@Field(() => CommentUncheckedUpdateManyWithoutArticleInput, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class ArticleUpdateManyWithoutAuthorInput {
upsert?: Array<ArticleUpsertWithWhereUniqueWithoutAuthorInput>;

@Field(() => ArticleCreateManyAuthorInputEnvelope, { nullable: true })
@Type(() => ArticleCreateManyAuthorInputEnvelope)
createMany?: ArticleCreateManyAuthorInputEnvelope;

@Field(() => [ArticleWhereUniqueInput], { nullable: true })
Expand Down
2 changes: 2 additions & 0 deletions @generated/article/article-update-without-author.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TagUpdateManyWithoutArticlesInput } from '../tag/tag-update-many-withou
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 { Type } from 'class-transformer';
import { CommentUpdateManyWithoutArticleInput } from '../comment/comment-update-many-without-article.input';
import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input';

Expand Down Expand Up @@ -38,6 +39,7 @@ export class ArticleUpdateWithoutAuthorInput {
favoritesCount?: IntFieldUpdateOperationsInput;

@Field(() => UserUpdateManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserUpdateManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUpdateManyWithoutFavoriteArticlesInput;

@Field(() => CommentUpdateManyWithoutArticleInput, { nullable: true })
Expand Down
3 changes: 3 additions & 0 deletions @generated/article/article-update-without-comments.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TagUpdateManyWithoutArticlesInput } from '../tag/tag-update-many-withou
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 { Type } from 'class-transformer';
import { UserUpdateManyWithoutFavoriteArticlesInput } from '../user/user-update-many-without-favorite-articles.input';
import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input';

Expand Down Expand Up @@ -38,9 +39,11 @@ export class ArticleUpdateWithoutCommentsInput {
favoritesCount?: IntFieldUpdateOperationsInput;

@Field(() => UserUpdateOneRequiredWithoutArticlesInput, { nullable: true })
@Type(() => UserUpdateOneRequiredWithoutArticlesInput)
author?: UserUpdateOneRequiredWithoutArticlesInput;

@Field(() => UserUpdateManyWithoutFavoriteArticlesInput, { nullable: true })
@Type(() => UserUpdateManyWithoutFavoriteArticlesInput)
favoritedBy?: UserUpdateManyWithoutFavoriteArticlesInput;

@Field(() => NullableBoolFieldUpdateOperationsInput, { nullable: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TagUpdateManyWithoutArticlesInput } from '../tag/tag-update-many-withou
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 { Type } from 'class-transformer';
import { CommentUpdateManyWithoutArticleInput } from '../comment/comment-update-many-without-article.input';
import { NullableBoolFieldUpdateOperationsInput } from '../prisma/nullable-bool-field-update-operations.input';

Expand Down Expand Up @@ -38,6 +39,7 @@ export class ArticleUpdateWithoutFavoritedByInput {
favoritesCount?: IntFieldUpdateOperationsInput;

@Field(() => UserUpdateOneRequiredWithoutArticlesInput, { nullable: true })
@Type(() => UserUpdateOneRequiredWithoutArticlesInput)
author?: UserUpdateOneRequiredWithoutArticlesInput;

@Field(() => CommentUpdateManyWithoutArticleInput, { nullable: true })
Expand Down
Loading

0 comments on commit 9a7da40

Please sign in to comment.