Skip to content

Commit

Permalink
fix: Detection property nullable type
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed Aug 23, 2020
1 parent dce9fd9 commit 2121885
Show file tree
Hide file tree
Showing 135 changed files with 781 additions and 723 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export class ArticleCreateManyWithoutAuthorInput {
nullable: true,
description: undefined,
})
create?: ArticleCreateWithoutAuthorInput | ArticleCreateWithoutAuthorInput[] | null;
create?: Array<ArticleCreateWithoutAuthorInput>;

@Field(() => [ArticleWhereUniqueInput], {
nullable: true,
description: undefined,
})
connect?: ArticleWhereUniqueInput | ArticleWhereUniqueInput[] | null;
connect?: Array<ArticleWhereUniqueInput>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export class ArticleCreateManyWithoutFavoritedByInput {
nullable: true,
description: undefined,
})
create?: ArticleCreateWithoutFavoritedByInput | ArticleCreateWithoutFavoritedByInput[] | null;
create?: Array<ArticleCreateWithoutFavoritedByInput>;

@Field(() => [ArticleWhereUniqueInput], {
nullable: true,
description: undefined,
})
connect?: ArticleWhereUniqueInput | ArticleWhereUniqueInput[] | null;
connect?: Array<ArticleWhereUniqueInput>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export class ArticleCreateManyWithoutTagsInput {
nullable: true,
description: undefined,
})
create?: ArticleCreateWithoutTagsInput | ArticleCreateWithoutTagsInput[] | null;
create?: Array<ArticleCreateWithoutTagsInput>;

@Field(() => [ArticleWhereUniqueInput], {
nullable: true,
description: undefined,
})
connect?: ArticleWhereUniqueInput | ArticleWhereUniqueInput[] | null;
connect?: Array<ArticleWhereUniqueInput>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export class ArticleCreateOneWithoutCommentsInput {
nullable: true,
description: undefined,
})
create?: ArticleCreateWithoutCommentsInput | null;
create?: ArticleCreateWithoutCommentsInput;

@Field(() => ArticleWhereUniqueInput, {
nullable: true,
description: undefined,
})
connect?: ArticleWhereUniqueInput | null;
connect?: ArticleWhereUniqueInput;
}
16 changes: 8 additions & 8 deletions src/@generated/article/article-create-without-author.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,49 @@ export class ArticleCreateWithoutAuthorInput {
nullable: true,
description: undefined,
})
id?: string | null;
id?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
slug?: string | null;
slug?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
title?: string | null;
title?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
description?: string | null;
description?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
body?: string | null;
body?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
createdAt?: string | null;
createdAt?: Date | string;

@Field(() => String, {
nullable: true,
description: undefined,
})
updatedAt?: string | null;
updatedAt?: Date | string;

@Field(() => Int, {
nullable: true,
description: undefined,
})
favoritesCount?: number | null;
favoritesCount?: number;

@Field(() => Boolean, {
nullable: true,
Expand Down
18 changes: 9 additions & 9 deletions src/@generated/article/article-create-without-comments.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,49 @@ export class ArticleCreateWithoutCommentsInput {
nullable: true,
description: undefined,
})
id?: string | null;
id?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
slug?: string | null;
slug?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
title?: string | null;
title?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
description?: string | null;
description?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
body?: string | null;
body?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
createdAt?: string | null;
createdAt?: Date | string;

@Field(() => String, {
nullable: true,
description: undefined,
})
updatedAt?: string | null;
updatedAt?: Date | string;

@Field(() => Int, {
nullable: true,
description: undefined,
})
favoritesCount?: number | null;
favoritesCount?: number;

@Field(() => Boolean, {
nullable: true,
Expand All @@ -70,7 +70,7 @@ export class ArticleCreateWithoutCommentsInput {
nullable: true,
description: undefined,
})
author?: UserCreateOneWithoutArticlesInput | null;
author?: UserCreateOneWithoutArticlesInput;

@Field(() => UserCreateManyWithoutFavoriteArticlesInput, {
nullable: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,49 @@ export class ArticleCreateWithoutFavoritedByInput {
nullable: true,
description: undefined,
})
id?: string | null;
id?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
slug?: string | null;
slug?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
title?: string | null;
title?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
description?: string | null;
description?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
body?: string | null;
body?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
createdAt?: string | null;
createdAt?: Date | string;

@Field(() => String, {
nullable: true,
description: undefined,
})
updatedAt?: string | null;
updatedAt?: Date | string;

@Field(() => Int, {
nullable: true,
description: undefined,
})
favoritesCount?: number | null;
favoritesCount?: number;

@Field(() => Boolean, {
nullable: true,
Expand All @@ -70,7 +70,7 @@ export class ArticleCreateWithoutFavoritedByInput {
nullable: true,
description: undefined,
})
author?: UserCreateOneWithoutArticlesInput | null;
author?: UserCreateOneWithoutArticlesInput;

@Field(() => CommentCreateManyWithoutArticleInput, {
nullable: true,
Expand Down
18 changes: 9 additions & 9 deletions src/@generated/article/article-create-without-tags.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,49 @@ export class ArticleCreateWithoutTagsInput {
nullable: true,
description: undefined,
})
id?: string | null;
id?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
slug?: string | null;
slug?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
title?: string | null;
title?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
description?: string | null;
description?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
body?: string | null;
body?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
createdAt?: string | null;
createdAt?: Date | string;

@Field(() => String, {
nullable: true,
description: undefined,
})
updatedAt?: string | null;
updatedAt?: Date | string;

@Field(() => Int, {
nullable: true,
description: undefined,
})
favoritesCount?: number | null;
favoritesCount?: number;

@Field(() => Boolean, {
nullable: true,
Expand All @@ -64,7 +64,7 @@ export class ArticleCreateWithoutTagsInput {
nullable: true,
description: undefined,
})
author?: UserCreateOneWithoutArticlesInput | null;
author?: UserCreateOneWithoutArticlesInput;

@Field(() => UserCreateManyWithoutFavoriteArticlesInput, {
nullable: true,
Expand Down
18 changes: 9 additions & 9 deletions src/@generated/article/article-create.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,49 @@ export class ArticleCreateInput {
nullable: true,
description: undefined,
})
id?: string | null;
id?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
slug?: string | null;
slug?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
title?: string | null;
title?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
description?: string | null;
description?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
body?: string | null;
body?: string;

@Field(() => String, {
nullable: true,
description: undefined,
})
createdAt?: string | null;
createdAt?: Date | string;

@Field(() => String, {
nullable: true,
description: undefined,
})
updatedAt?: string | null;
updatedAt?: Date | string;

@Field(() => Int, {
nullable: true,
description: undefined,
})
favoritesCount?: number | null;
favoritesCount?: number;

@Field(() => Boolean, {
nullable: true,
Expand All @@ -71,7 +71,7 @@ export class ArticleCreateInput {
nullable: true,
description: undefined,
})
author?: UserCreateOneWithoutArticlesInput | null;
author?: UserCreateOneWithoutArticlesInput;

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

0 comments on commit 2121885

Please sign in to comment.