Skip to content

Commit 472c640

Browse files
committed
chore: Updated packages
1 parent 075f0ad commit 472c640

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+411
-421
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"prisma:g": "node node_modules/@prisma/cli/build/index.js generate",
3939
"prettier:format": "npx prettier src --write",
4040
"regen": "rm -rf src/@generated && npm run prisma:g && npm run eslint:fix && npm run prettier:format",
41-
"start:example": "node -r ts-node/register/transpile-only src/example/main.ts"
41+
"example": "ts-node-dev src/example/main.ts"
4242
},
4343
"husky": {
4444
"hooks": {
@@ -56,7 +56,7 @@
5656
"typescript-equals": "^1.0.0"
5757
},
5858
"peerDependencies": {
59-
"@prisma/client": "2"
59+
"@prisma/client": ">=2.5"
6060
},
6161
"devDependencies": {
6262
"@commitlint/cli": "^9.1.2",
@@ -65,8 +65,9 @@
6565
"@nestjs/core": "^7.4.2",
6666
"@nestjs/graphql": "^7.6.0",
6767
"@nestjs/platform-express": "^7.4.2",
68+
"@paljs/plugins": "^1.2.6",
6869
"@prisma/cli": "^2.5.1",
69-
"@prisma/client": "^2.4.1",
70+
"@prisma/client": "^2.5.1",
7071
"@semantic-release/changelog": "^5.0.1",
7172
"@semantic-release/git": "^9.0.0",
7273
"@types/mocha": "^8.0.3",
@@ -91,6 +92,7 @@
9192
"eslint-plugin-total-functions": "^2.3.1",
9293
"eslint-plugin-unicorn": "^21.0.0",
9394
"eslint-plugin-wix-editor": "^3.2.0",
95+
"find-cache-dir": "^3.3.1",
9496
"git-branch-is": "^4.0.0",
9597
"graphql": "^15.3.0",
9698
"graphql-type-json": "^0.3.2",
@@ -103,6 +105,7 @@
103105
"semantic-release": "^17.1.1",
104106
"simplytyped": "^3.3.0",
105107
"ts-node": "^9.0.0",
108+
"ts-node-dev": "^1.0.0-pre.61",
106109
"typescript": "~4.0.2",
107110
"watchexec-bin": "^1.0.0"
108111
}

prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
datasource database {
2-
provider = "postgresql"
2+
provider = ["postgresql", "sqlite"]
33
url = env("DATABASE_URL")
44
}
55

66
generator client {
77
provider = "prisma-client-js"
8-
previewFeatures = ["distinct", "aggregateApi"]
98
}
109

1110
generator nestgraphql {
@@ -27,6 +26,7 @@ model User {
2726
articles Article[] @relation("ArticleAuthor")
2827
comments Comment[]
2928
countComments Int?
29+
rating Float?
3030
}
3131

3232
model Tag {

src/@generated/article/article-filter.input.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/@generated/article/article-scalar-where.input.ts

Lines changed: 18 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
import { Field, InputType } from '@nestjs/graphql';
22

3-
import { CommentFilter } from '../comment/comment-filter.input';
43
import { BooleanFilter } from '../prisma/boolean-filter.input';
54
import { DateTimeFilter } from '../prisma/date-time-filter.input';
65
import { IntFilter } from '../prisma/int-filter.input';
76
import { StringFilter } from '../prisma/string-filter.input';
8-
import { TagFilter } from '../tag/tag-filter.input';
9-
import { UserFilter } from '../user/user-filter.input';
107

118
@InputType({})
129
export class ArticleScalarWhereInput {
10+
@Field(() => [ArticleScalarWhereInput], {
11+
nullable: true,
12+
description: undefined,
13+
})
14+
AND?: ArticleScalarWhereInput | Array<ArticleScalarWhereInput>;
15+
16+
@Field(() => [ArticleScalarWhereInput], {
17+
nullable: true,
18+
description: undefined,
19+
})
20+
OR?: Array<ArticleScalarWhereInput>;
21+
22+
@Field(() => [ArticleScalarWhereInput], {
23+
nullable: true,
24+
description: undefined,
25+
})
26+
NOT?: ArticleScalarWhereInput | Array<ArticleScalarWhereInput>;
27+
1328
@Field(() => StringFilter, {
1429
nullable: true,
1530
description: undefined,
@@ -40,12 +55,6 @@ export class ArticleScalarWhereInput {
4055
})
4156
body?: string | StringFilter;
4257

43-
@Field(() => TagFilter, {
44-
nullable: true,
45-
description: undefined,
46-
})
47-
tags?: TagFilter | null;
48-
4958
@Field(() => DateTimeFilter, {
5059
nullable: true,
5160
description: undefined,
@@ -70,39 +79,9 @@ export class ArticleScalarWhereInput {
7079
})
7180
authorId?: string | StringFilter;
7281

73-
@Field(() => UserFilter, {
74-
nullable: true,
75-
description: undefined,
76-
})
77-
favoritedBy?: UserFilter | null;
78-
79-
@Field(() => CommentFilter, {
80-
nullable: true,
81-
description: undefined,
82-
})
83-
comments?: CommentFilter | null;
84-
8582
@Field(() => BooleanFilter, {
8683
nullable: true,
8784
description: undefined,
8885
})
8986
active?: boolean | BooleanFilter | null;
90-
91-
@Field(() => [ArticleScalarWhereInput], {
92-
nullable: true,
93-
description: undefined,
94-
})
95-
AND?: ArticleScalarWhereInput | Array<ArticleScalarWhereInput>;
96-
97-
@Field(() => [ArticleScalarWhereInput], {
98-
nullable: true,
99-
description: undefined,
100-
})
101-
OR?: Array<ArticleScalarWhereInput>;
102-
103-
@Field(() => [ArticleScalarWhereInput], {
104-
nullable: true,
105-
description: undefined,
106-
})
107-
NOT?: ArticleScalarWhereInput | Array<ArticleScalarWhereInput>;
10887
}

src/@generated/article/article-where.input.ts

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,34 @@
11
import { Field, InputType } from '@nestjs/graphql';
22

3-
import { CommentFilter } from '../comment/comment-filter.input';
3+
import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input';
44
import { BooleanFilter } from '../prisma/boolean-filter.input';
55
import { DateTimeFilter } from '../prisma/date-time-filter.input';
66
import { IntFilter } from '../prisma/int-filter.input';
77
import { StringFilter } from '../prisma/string-filter.input';
8-
import { TagFilter } from '../tag/tag-filter.input';
9-
import { UserFilter } from '../user/user-filter.input';
10-
import { UserRelationFilter } from '../user/user-relation-filter.input';
8+
import { TagListRelationFilter } from '../tag/tag-list-relation-filter.input';
9+
import { UserListRelationFilter } from '../user/user-list-relation-filter.input';
10+
import { UserWhereInput } from '../user/user-where.input';
1111

1212
@InputType({})
1313
export class ArticleWhereInput {
14+
@Field(() => [ArticleWhereInput], {
15+
nullable: true,
16+
description: undefined,
17+
})
18+
AND?: ArticleWhereInput | Array<ArticleWhereInput>;
19+
20+
@Field(() => [ArticleWhereInput], {
21+
nullable: true,
22+
description: undefined,
23+
})
24+
OR?: Array<ArticleWhereInput>;
25+
26+
@Field(() => [ArticleWhereInput], {
27+
nullable: true,
28+
description: undefined,
29+
})
30+
NOT?: ArticleWhereInput | Array<ArticleWhereInput>;
31+
1432
@Field(() => StringFilter, {
1533
nullable: true,
1634
description: undefined,
@@ -41,11 +59,11 @@ export class ArticleWhereInput {
4159
})
4260
body?: string | StringFilter;
4361

44-
@Field(() => TagFilter, {
62+
@Field(() => TagListRelationFilter, {
4563
nullable: true,
4664
description: undefined,
4765
})
48-
tags?: TagFilter | null;
66+
tags?: TagListRelationFilter | null;
4967

5068
@Field(() => DateTimeFilter, {
5169
nullable: true,
@@ -65,51 +83,33 @@ export class ArticleWhereInput {
6583
})
6684
favoritesCount?: number | IntFilter;
6785

68-
@Field(() => StringFilter, {
69-
nullable: true,
70-
description: undefined,
71-
})
72-
authorId?: string | StringFilter;
73-
74-
@Field(() => UserFilter, {
75-
nullable: true,
76-
description: undefined,
77-
})
78-
favoritedBy?: UserFilter | null;
79-
80-
@Field(() => CommentFilter, {
81-
nullable: true,
82-
description: undefined,
83-
})
84-
comments?: CommentFilter | null;
85-
86-
@Field(() => BooleanFilter, {
86+
@Field(() => UserWhereInput, {
8787
nullable: true,
8888
description: undefined,
8989
})
90-
active?: boolean | BooleanFilter | null;
90+
author?: UserWhereInput;
9191

92-
@Field(() => [ArticleWhereInput], {
92+
@Field(() => StringFilter, {
9393
nullable: true,
9494
description: undefined,
9595
})
96-
AND?: ArticleWhereInput | Array<ArticleWhereInput>;
96+
authorId?: string | StringFilter;
9797

98-
@Field(() => [ArticleWhereInput], {
98+
@Field(() => UserListRelationFilter, {
9999
nullable: true,
100100
description: undefined,
101101
})
102-
OR?: Array<ArticleWhereInput>;
102+
favoritedBy?: UserListRelationFilter | null;
103103

104-
@Field(() => [ArticleWhereInput], {
104+
@Field(() => CommentListRelationFilter, {
105105
nullable: true,
106106
description: undefined,
107107
})
108-
NOT?: ArticleWhereInput | Array<ArticleWhereInput>;
108+
comments?: CommentListRelationFilter | null;
109109

110-
@Field(() => UserRelationFilter, {
110+
@Field(() => BooleanFilter, {
111111
nullable: true,
112112
description: undefined,
113113
})
114-
author?: UserRelationFilter;
114+
active?: boolean | BooleanFilter | null;
115115
}

src/@generated/comment/comment-filter.input.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/@generated/comment/comment-scalar-where.input.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,57 +5,57 @@ import { StringFilter } from '../prisma/string-filter.input';
55

66
@InputType({})
77
export class CommentScalarWhereInput {
8-
@Field(() => StringFilter, {
8+
@Field(() => [CommentScalarWhereInput], {
99
nullable: true,
1010
description: undefined,
1111
})
12-
id?: string | StringFilter;
12+
AND?: CommentScalarWhereInput | Array<CommentScalarWhereInput>;
1313

14-
@Field(() => DateTimeFilter, {
14+
@Field(() => [CommentScalarWhereInput], {
1515
nullable: true,
1616
description: undefined,
1717
})
18-
createdAt?: Date | string | DateTimeFilter;
18+
OR?: Array<CommentScalarWhereInput>;
1919

20-
@Field(() => DateTimeFilter, {
20+
@Field(() => [CommentScalarWhereInput], {
2121
nullable: true,
2222
description: undefined,
2323
})
24-
updatedAt?: Date | string | DateTimeFilter;
24+
NOT?: CommentScalarWhereInput | Array<CommentScalarWhereInput>;
2525

2626
@Field(() => StringFilter, {
2727
nullable: true,
2828
description: undefined,
2929
})
30-
body?: string | StringFilter;
30+
id?: string | StringFilter;
3131

32-
@Field(() => StringFilter, {
32+
@Field(() => DateTimeFilter, {
3333
nullable: true,
3434
description: undefined,
3535
})
36-
authorId?: string | StringFilter;
36+
createdAt?: Date | string | DateTimeFilter;
3737

38-
@Field(() => StringFilter, {
38+
@Field(() => DateTimeFilter, {
3939
nullable: true,
4040
description: undefined,
4141
})
42-
articleId?: string | StringFilter | null;
42+
updatedAt?: Date | string | DateTimeFilter;
4343

44-
@Field(() => [CommentScalarWhereInput], {
44+
@Field(() => StringFilter, {
4545
nullable: true,
4646
description: undefined,
4747
})
48-
AND?: CommentScalarWhereInput | Array<CommentScalarWhereInput>;
48+
body?: string | StringFilter;
4949

50-
@Field(() => [CommentScalarWhereInput], {
50+
@Field(() => StringFilter, {
5151
nullable: true,
5252
description: undefined,
5353
})
54-
OR?: Array<CommentScalarWhereInput>;
54+
authorId?: string | StringFilter;
5555

56-
@Field(() => [CommentScalarWhereInput], {
56+
@Field(() => StringFilter, {
5757
nullable: true,
5858
description: undefined,
5959
})
60-
NOT?: CommentScalarWhereInput | Array<CommentScalarWhereInput>;
60+
articleId?: string | StringFilter | null;
6161
}

0 commit comments

Comments
 (0)