@smartive/graphql-magic 9.1.2 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +2 -10
- package/.github/workflows/release.yml +1 -1
- package/.gqmrc.json +6 -0
- package/CHANGELOG.md +2 -2
- package/README.md +1 -1
- package/dist/bin/gqm.cjs +684 -330
- package/dist/cjs/index.cjs +998 -554
- package/dist/esm/api/execute.js +1 -1
- package/dist/esm/api/execute.js.map +1 -1
- package/dist/esm/client/mutations.d.ts +2 -2
- package/dist/esm/client/mutations.js +5 -4
- package/dist/esm/client/mutations.js.map +1 -1
- package/dist/esm/client/queries.d.ts +12 -17
- package/dist/esm/client/queries.js +30 -50
- package/dist/esm/client/queries.js.map +1 -1
- package/dist/esm/context.d.ts +1 -2
- package/dist/esm/db/generate.d.ts +3 -3
- package/dist/esm/db/generate.js +31 -29
- package/dist/esm/db/generate.js.map +1 -1
- package/dist/esm/migrations/generate.d.ts +3 -4
- package/dist/esm/migrations/generate.js +114 -107
- package/dist/esm/migrations/generate.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/model-definitions.d.ts +189 -0
- package/dist/esm/models/model-definitions.js +2 -0
- package/dist/esm/models/model-definitions.js.map +1 -0
- package/dist/esm/models/models.d.ts +128 -174
- package/dist/esm/models/models.js +411 -1
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/models/mutation-hook.d.ts +2 -2
- package/dist/esm/models/utils.d.ts +35 -497
- package/dist/esm/models/utils.js +21 -144
- package/dist/esm/models/utils.js.map +1 -1
- package/dist/esm/permissions/check.d.ts +3 -3
- package/dist/esm/permissions/check.js +14 -7
- package/dist/esm/permissions/check.js.map +1 -1
- package/dist/esm/permissions/generate.js +6 -6
- package/dist/esm/permissions/generate.js.map +1 -1
- package/dist/esm/resolvers/filters.d.ts +8 -0
- package/dist/esm/resolvers/filters.js +28 -25
- package/dist/esm/resolvers/filters.js.map +1 -1
- package/dist/esm/resolvers/index.d.ts +1 -0
- package/dist/esm/resolvers/index.js +1 -0
- package/dist/esm/resolvers/index.js.map +1 -1
- package/dist/esm/resolvers/mutations.js +85 -21
- package/dist/esm/resolvers/mutations.js.map +1 -1
- package/dist/esm/resolvers/node.d.ts +13 -15
- package/dist/esm/resolvers/node.js +41 -36
- package/dist/esm/resolvers/node.js.map +1 -1
- package/dist/esm/resolvers/resolver.js +19 -49
- package/dist/esm/resolvers/resolver.js.map +1 -1
- package/dist/esm/resolvers/resolvers.d.ts +1 -8
- package/dist/esm/resolvers/resolvers.js +15 -7
- package/dist/esm/resolvers/resolvers.js.map +1 -1
- package/dist/esm/resolvers/selects.d.ts +3 -0
- package/dist/esm/resolvers/selects.js +50 -0
- package/dist/esm/resolvers/selects.js.map +1 -0
- package/dist/esm/resolvers/utils.d.ts +12 -4
- package/dist/esm/resolvers/utils.js +30 -22
- package/dist/esm/resolvers/utils.js.map +1 -1
- package/dist/esm/schema/generate.d.ts +4 -4
- package/dist/esm/schema/generate.js +122 -131
- package/dist/esm/schema/generate.js.map +1 -1
- package/dist/esm/schema/utils.d.ts +1 -1
- package/dist/esm/schema/utils.js +2 -1
- package/dist/esm/schema/utils.js.map +1 -1
- package/knexfile.ts +31 -0
- package/migrations/20230912185644_setup.ts +127 -0
- package/package.json +16 -14
- package/src/api/execute.ts +1 -1
- package/src/bin/gqm/gqm.ts +25 -23
- package/src/bin/gqm/parse-models.ts +5 -5
- package/src/bin/gqm/settings.ts +13 -4
- package/src/bin/gqm/static-eval.ts +5 -0
- package/src/bin/gqm/templates.ts +23 -3
- package/src/client/mutations.ts +11 -5
- package/src/client/queries.ts +43 -80
- package/src/context.ts +1 -2
- package/src/db/generate.ts +41 -41
- package/src/migrations/generate.ts +165 -146
- package/src/models/index.ts +1 -0
- package/src/models/model-definitions.ts +168 -0
- package/src/models/models.ts +510 -166
- package/src/models/mutation-hook.ts +2 -2
- package/src/models/utils.ts +53 -187
- package/src/permissions/check.ts +19 -11
- package/src/permissions/generate.ts +6 -6
- package/src/resolvers/filters.ts +44 -28
- package/src/resolvers/index.ts +1 -0
- package/src/resolvers/mutations.ts +98 -36
- package/src/resolvers/node.ts +79 -51
- package/src/resolvers/resolver.ts +20 -74
- package/src/resolvers/resolvers.ts +18 -7
- package/src/resolvers/selects.ts +77 -0
- package/src/resolvers/utils.ts +41 -25
- package/src/schema/generate.ts +106 -127
- package/src/schema/utils.ts +2 -1
- package/tests/api/__snapshots__/inheritance.spec.ts.snap +83 -0
- package/tests/api/inheritance.spec.ts +130 -0
- package/tests/generated/api/index.ts +1174 -0
- package/tests/generated/client/index.ts +1163 -0
- package/tests/generated/client/mutations.ts +109 -0
- package/tests/generated/db/index.ts +291 -0
- package/tests/generated/db/knex.ts +14 -0
- package/tests/generated/models.json +675 -0
- package/tests/generated/schema.graphql +325 -0
- package/tests/unit/__snapshots__/resolve.spec.ts.snap +23 -0
- package/tests/unit/queries.spec.ts +5 -5
- package/tests/unit/resolve.spec.ts +8 -8
- package/tests/utils/database/knex.ts +5 -13
- package/tests/utils/database/seed.ts +57 -18
- package/tests/utils/models.ts +62 -7
- package/tests/utils/server.ts +5 -5
- package/tsconfig.eslint.json +1 -0
- package/tests/unit/__snapshots__/generate.spec.ts.snap +0 -128
- package/tests/unit/generate.spec.ts +0 -8
- package/tests/utils/database/schema.ts +0 -64
- package/tests/utils/generate-migration.ts +0 -24
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
export type Maybe<T> = T | null;
|
|
2
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
3
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
4
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
5
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
6
|
+
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
|
|
7
|
+
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
|
|
8
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
9
|
+
export type Scalars = {
|
|
10
|
+
ID: { input: string; output: string; }
|
|
11
|
+
String: { input: string; output: string; }
|
|
12
|
+
Boolean: { input: boolean; output: boolean; }
|
|
13
|
+
Int: { input: number; output: number; }
|
|
14
|
+
Float: { input: number; output: number; }
|
|
15
|
+
DateTime: { input: string; output: string; }
|
|
16
|
+
Upload: { input: any; output: any; }
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type AnotherObject = {
|
|
20
|
+
__typename: 'AnotherObject';
|
|
21
|
+
deleted: Scalars['Boolean']['output'];
|
|
22
|
+
deletedAt: Maybe<Scalars['DateTime']['output']>;
|
|
23
|
+
deletedBy: Maybe<User>;
|
|
24
|
+
id: Scalars['ID']['output'];
|
|
25
|
+
manyObjects: Array<SomeObject>;
|
|
26
|
+
myself: Maybe<AnotherObject>;
|
|
27
|
+
name: Maybe<Scalars['String']['output']>;
|
|
28
|
+
self: Maybe<AnotherObject>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export type AnotherObjectmanyObjectsArgs = {
|
|
33
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
34
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
35
|
+
orderBy?: InputMaybe<Array<SomeObjectOrderBy>>;
|
|
36
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
37
|
+
where?: InputMaybe<SomeObjectWhere>;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
export type AnotherObjectselfArgs = {
|
|
42
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
43
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
44
|
+
orderBy?: InputMaybe<Array<AnotherObjectOrderBy>>;
|
|
45
|
+
where?: InputMaybe<AnotherObjectWhere>;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type AnotherObjectOrderBy = {
|
|
49
|
+
deletedAt?: InputMaybe<Order>;
|
|
50
|
+
name?: InputMaybe<Order>;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type AnotherObjectWhere = {
|
|
54
|
+
deleted?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
55
|
+
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type AnotherObjectWhereUnique = {
|
|
59
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type Answer = Reaction & {
|
|
63
|
+
__typename: 'Answer';
|
|
64
|
+
childAnswers: Array<Answer>;
|
|
65
|
+
childQuestions: Array<Question>;
|
|
66
|
+
childReactions: Array<Reaction>;
|
|
67
|
+
childReviews: Array<Review>;
|
|
68
|
+
content: Maybe<Scalars['String']['output']>;
|
|
69
|
+
createdAt: Scalars['DateTime']['output'];
|
|
70
|
+
createdBy: User;
|
|
71
|
+
deleted: Scalars['Boolean']['output'];
|
|
72
|
+
deletedAt: Maybe<Scalars['DateTime']['output']>;
|
|
73
|
+
deletedBy: Maybe<User>;
|
|
74
|
+
id: Scalars['ID']['output'];
|
|
75
|
+
parent: Maybe<Reaction>;
|
|
76
|
+
type: ReactionType;
|
|
77
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
78
|
+
updatedBy: User;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
export type AnswerchildAnswersArgs = {
|
|
83
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
84
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
85
|
+
orderBy?: InputMaybe<Array<AnswerOrderBy>>;
|
|
86
|
+
where?: InputMaybe<AnswerWhere>;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
export type AnswerchildQuestionsArgs = {
|
|
91
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
92
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
93
|
+
orderBy?: InputMaybe<Array<QuestionOrderBy>>;
|
|
94
|
+
where?: InputMaybe<QuestionWhere>;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
export type AnswerchildReactionsArgs = {
|
|
99
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
100
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
101
|
+
orderBy?: InputMaybe<Array<ReactionOrderBy>>;
|
|
102
|
+
where?: InputMaybe<ReactionWhere>;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
export type AnswerchildReviewsArgs = {
|
|
107
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
108
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
109
|
+
orderBy?: InputMaybe<Array<ReviewOrderBy>>;
|
|
110
|
+
where?: InputMaybe<ReviewWhere>;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export type AnswerOrderBy = {
|
|
114
|
+
createdAt?: InputMaybe<Order>;
|
|
115
|
+
deletedAt?: InputMaybe<Order>;
|
|
116
|
+
updatedAt?: InputMaybe<Order>;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type AnswerWhere = {
|
|
120
|
+
deleted?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
121
|
+
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type AnswerWhereUnique = {
|
|
125
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export type CreateAnswer = {
|
|
129
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export type CreateQuestion = {
|
|
133
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export type CreateReview = {
|
|
137
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
138
|
+
rating?: InputMaybe<Scalars['Float']['input']>;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export type CreateSomeObject = {
|
|
142
|
+
xyz: Scalars['Int']['input'];
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export type Mutation = {
|
|
146
|
+
__typename: 'Mutation';
|
|
147
|
+
createAnswer: Answer;
|
|
148
|
+
createQuestion: Question;
|
|
149
|
+
createReview: Review;
|
|
150
|
+
createSomeObject: SomeObject;
|
|
151
|
+
deleteAnotherObject: Scalars['ID']['output'];
|
|
152
|
+
deleteAnswer: Scalars['ID']['output'];
|
|
153
|
+
deleteQuestion: Scalars['ID']['output'];
|
|
154
|
+
deleteReview: Scalars['ID']['output'];
|
|
155
|
+
deleteSomeObject: Scalars['ID']['output'];
|
|
156
|
+
restoreAnotherObject: Scalars['ID']['output'];
|
|
157
|
+
restoreAnswer: Scalars['ID']['output'];
|
|
158
|
+
restoreQuestion: Scalars['ID']['output'];
|
|
159
|
+
restoreReview: Scalars['ID']['output'];
|
|
160
|
+
restoreSomeObject: Scalars['ID']['output'];
|
|
161
|
+
updateAnswer: Answer;
|
|
162
|
+
updateQuestion: Question;
|
|
163
|
+
updateReview: Review;
|
|
164
|
+
updateSomeObject: SomeObject;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
export type MutationcreateAnswerArgs = {
|
|
169
|
+
data: CreateAnswer;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
export type MutationcreateQuestionArgs = {
|
|
174
|
+
data: CreateQuestion;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
export type MutationcreateReviewArgs = {
|
|
179
|
+
data: CreateReview;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
export type MutationcreateSomeObjectArgs = {
|
|
184
|
+
data: CreateSomeObject;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
export type MutationdeleteAnotherObjectArgs = {
|
|
189
|
+
dryRun?: InputMaybe<Scalars['Boolean']['input']>;
|
|
190
|
+
where: AnotherObjectWhereUnique;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
export type MutationdeleteAnswerArgs = {
|
|
195
|
+
dryRun?: InputMaybe<Scalars['Boolean']['input']>;
|
|
196
|
+
where: AnswerWhereUnique;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
export type MutationdeleteQuestionArgs = {
|
|
201
|
+
dryRun?: InputMaybe<Scalars['Boolean']['input']>;
|
|
202
|
+
where: QuestionWhereUnique;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
export type MutationdeleteReviewArgs = {
|
|
207
|
+
dryRun?: InputMaybe<Scalars['Boolean']['input']>;
|
|
208
|
+
where: ReviewWhereUnique;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
export type MutationdeleteSomeObjectArgs = {
|
|
213
|
+
dryRun?: InputMaybe<Scalars['Boolean']['input']>;
|
|
214
|
+
where: SomeObjectWhereUnique;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
export type MutationrestoreAnotherObjectArgs = {
|
|
219
|
+
where: AnotherObjectWhereUnique;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
export type MutationrestoreAnswerArgs = {
|
|
224
|
+
where: AnswerWhereUnique;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
export type MutationrestoreQuestionArgs = {
|
|
229
|
+
where: QuestionWhereUnique;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
export type MutationrestoreReviewArgs = {
|
|
234
|
+
where: ReviewWhereUnique;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
export type MutationrestoreSomeObjectArgs = {
|
|
239
|
+
where: SomeObjectWhereUnique;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
export type MutationupdateAnswerArgs = {
|
|
244
|
+
data: UpdateAnswer;
|
|
245
|
+
where: AnswerWhereUnique;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
export type MutationupdateQuestionArgs = {
|
|
250
|
+
data: UpdateQuestion;
|
|
251
|
+
where: QuestionWhereUnique;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
export type MutationupdateReviewArgs = {
|
|
256
|
+
data: UpdateReview;
|
|
257
|
+
where: ReviewWhereUnique;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
export type MutationupdateSomeObjectArgs = {
|
|
262
|
+
data: UpdateSomeObject;
|
|
263
|
+
where: SomeObjectWhereUnique;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export enum Order {
|
|
267
|
+
ASC = 'ASC',
|
|
268
|
+
DESC = 'DESC'
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type Query = {
|
|
272
|
+
__typename: 'Query';
|
|
273
|
+
anotherObjects: Array<AnotherObject>;
|
|
274
|
+
answer: Answer;
|
|
275
|
+
answers: Array<Answer>;
|
|
276
|
+
manyObjects: Array<SomeObject>;
|
|
277
|
+
me: Maybe<User>;
|
|
278
|
+
question: Question;
|
|
279
|
+
questions: Array<Question>;
|
|
280
|
+
reaction: Reaction;
|
|
281
|
+
reactions: Array<Reaction>;
|
|
282
|
+
review: Review;
|
|
283
|
+
reviews: Array<Review>;
|
|
284
|
+
someObject: SomeObject;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
export type QueryanotherObjectsArgs = {
|
|
289
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
290
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
291
|
+
orderBy?: InputMaybe<Array<AnotherObjectOrderBy>>;
|
|
292
|
+
where?: InputMaybe<AnotherObjectWhere>;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
export type QueryanswerArgs = {
|
|
297
|
+
where: AnswerWhereUnique;
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
export type QueryanswersArgs = {
|
|
302
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
303
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
304
|
+
orderBy?: InputMaybe<Array<AnswerOrderBy>>;
|
|
305
|
+
where?: InputMaybe<AnswerWhere>;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
export type QuerymanyObjectsArgs = {
|
|
310
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
311
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
312
|
+
orderBy?: InputMaybe<Array<SomeObjectOrderBy>>;
|
|
313
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
314
|
+
where?: InputMaybe<SomeObjectWhere>;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
export type QueryquestionArgs = {
|
|
319
|
+
where: QuestionWhereUnique;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
export type QueryquestionsArgs = {
|
|
324
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
325
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
326
|
+
orderBy?: InputMaybe<Array<QuestionOrderBy>>;
|
|
327
|
+
where?: InputMaybe<QuestionWhere>;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
export type QueryreactionArgs = {
|
|
332
|
+
where: ReactionWhereUnique;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
export type QueryreactionsArgs = {
|
|
337
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
338
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
339
|
+
orderBy?: InputMaybe<Array<ReactionOrderBy>>;
|
|
340
|
+
where?: InputMaybe<ReactionWhere>;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
export type QueryreviewArgs = {
|
|
345
|
+
where: ReviewWhereUnique;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
export type QueryreviewsArgs = {
|
|
350
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
351
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
352
|
+
orderBy?: InputMaybe<Array<ReviewOrderBy>>;
|
|
353
|
+
where?: InputMaybe<ReviewWhere>;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
export type QuerysomeObjectArgs = {
|
|
358
|
+
where: SomeObjectWhereUnique;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export type Question = Reaction & {
|
|
362
|
+
__typename: 'Question';
|
|
363
|
+
childAnswers: Array<Answer>;
|
|
364
|
+
childQuestions: Array<Question>;
|
|
365
|
+
childReactions: Array<Reaction>;
|
|
366
|
+
childReviews: Array<Review>;
|
|
367
|
+
content: Maybe<Scalars['String']['output']>;
|
|
368
|
+
createdAt: Scalars['DateTime']['output'];
|
|
369
|
+
createdBy: User;
|
|
370
|
+
deleted: Scalars['Boolean']['output'];
|
|
371
|
+
deletedAt: Maybe<Scalars['DateTime']['output']>;
|
|
372
|
+
deletedBy: Maybe<User>;
|
|
373
|
+
id: Scalars['ID']['output'];
|
|
374
|
+
parent: Maybe<Reaction>;
|
|
375
|
+
type: ReactionType;
|
|
376
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
377
|
+
updatedBy: User;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
export type QuestionchildAnswersArgs = {
|
|
382
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
383
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
384
|
+
orderBy?: InputMaybe<Array<AnswerOrderBy>>;
|
|
385
|
+
where?: InputMaybe<AnswerWhere>;
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
export type QuestionchildQuestionsArgs = {
|
|
390
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
391
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
392
|
+
orderBy?: InputMaybe<Array<QuestionOrderBy>>;
|
|
393
|
+
where?: InputMaybe<QuestionWhere>;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
export type QuestionchildReactionsArgs = {
|
|
398
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
399
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
400
|
+
orderBy?: InputMaybe<Array<ReactionOrderBy>>;
|
|
401
|
+
where?: InputMaybe<ReactionWhere>;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
export type QuestionchildReviewsArgs = {
|
|
406
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
407
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
408
|
+
orderBy?: InputMaybe<Array<ReviewOrderBy>>;
|
|
409
|
+
where?: InputMaybe<ReviewWhere>;
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
export type QuestionOrderBy = {
|
|
413
|
+
createdAt?: InputMaybe<Order>;
|
|
414
|
+
deletedAt?: InputMaybe<Order>;
|
|
415
|
+
updatedAt?: InputMaybe<Order>;
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
export type QuestionWhere = {
|
|
419
|
+
deleted?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
420
|
+
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
export type QuestionWhereUnique = {
|
|
424
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
export type Reaction = {
|
|
428
|
+
childAnswers: Array<Answer>;
|
|
429
|
+
childQuestions: Array<Question>;
|
|
430
|
+
childReactions: Array<Reaction>;
|
|
431
|
+
childReviews: Array<Review>;
|
|
432
|
+
content: Maybe<Scalars['String']['output']>;
|
|
433
|
+
createdAt: Scalars['DateTime']['output'];
|
|
434
|
+
createdBy: User;
|
|
435
|
+
deleted: Scalars['Boolean']['output'];
|
|
436
|
+
deletedAt: Maybe<Scalars['DateTime']['output']>;
|
|
437
|
+
deletedBy: Maybe<User>;
|
|
438
|
+
id: Scalars['ID']['output'];
|
|
439
|
+
parent: Maybe<Reaction>;
|
|
440
|
+
type: ReactionType;
|
|
441
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
442
|
+
updatedBy: User;
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
export type ReactionchildAnswersArgs = {
|
|
447
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
448
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
449
|
+
orderBy?: InputMaybe<Array<AnswerOrderBy>>;
|
|
450
|
+
where?: InputMaybe<AnswerWhere>;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
export type ReactionchildQuestionsArgs = {
|
|
455
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
456
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
457
|
+
orderBy?: InputMaybe<Array<QuestionOrderBy>>;
|
|
458
|
+
where?: InputMaybe<QuestionWhere>;
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
export type ReactionchildReactionsArgs = {
|
|
463
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
464
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
465
|
+
orderBy?: InputMaybe<Array<ReactionOrderBy>>;
|
|
466
|
+
where?: InputMaybe<ReactionWhere>;
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
export type ReactionchildReviewsArgs = {
|
|
471
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
472
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
473
|
+
orderBy?: InputMaybe<Array<ReviewOrderBy>>;
|
|
474
|
+
where?: InputMaybe<ReviewWhere>;
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
export type ReactionOrderBy = {
|
|
478
|
+
createdAt?: InputMaybe<Order>;
|
|
479
|
+
deletedAt?: InputMaybe<Order>;
|
|
480
|
+
updatedAt?: InputMaybe<Order>;
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
export enum ReactionType {
|
|
484
|
+
Answer = 'Answer',
|
|
485
|
+
Question = 'Question',
|
|
486
|
+
Review = 'Review'
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export type ReactionWhere = {
|
|
490
|
+
deleted?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
491
|
+
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
export type ReactionWhereUnique = {
|
|
495
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
export type Review = Reaction & {
|
|
499
|
+
__typename: 'Review';
|
|
500
|
+
childAnswers: Array<Answer>;
|
|
501
|
+
childQuestions: Array<Question>;
|
|
502
|
+
childReactions: Array<Reaction>;
|
|
503
|
+
childReviews: Array<Review>;
|
|
504
|
+
content: Maybe<Scalars['String']['output']>;
|
|
505
|
+
createdAt: Scalars['DateTime']['output'];
|
|
506
|
+
createdBy: User;
|
|
507
|
+
deleted: Scalars['Boolean']['output'];
|
|
508
|
+
deletedAt: Maybe<Scalars['DateTime']['output']>;
|
|
509
|
+
deletedBy: Maybe<User>;
|
|
510
|
+
id: Scalars['ID']['output'];
|
|
511
|
+
parent: Maybe<Reaction>;
|
|
512
|
+
rating: Maybe<Scalars['Float']['output']>;
|
|
513
|
+
type: ReactionType;
|
|
514
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
515
|
+
updatedBy: User;
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
export type ReviewchildAnswersArgs = {
|
|
520
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
521
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
522
|
+
orderBy?: InputMaybe<Array<AnswerOrderBy>>;
|
|
523
|
+
where?: InputMaybe<AnswerWhere>;
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
export type ReviewchildQuestionsArgs = {
|
|
528
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
529
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
530
|
+
orderBy?: InputMaybe<Array<QuestionOrderBy>>;
|
|
531
|
+
where?: InputMaybe<QuestionWhere>;
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
export type ReviewchildReactionsArgs = {
|
|
536
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
537
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
538
|
+
orderBy?: InputMaybe<Array<ReactionOrderBy>>;
|
|
539
|
+
where?: InputMaybe<ReactionWhere>;
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
export type ReviewchildReviewsArgs = {
|
|
544
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
545
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
546
|
+
orderBy?: InputMaybe<Array<ReviewOrderBy>>;
|
|
547
|
+
where?: InputMaybe<ReviewWhere>;
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
export type ReviewOrderBy = {
|
|
551
|
+
createdAt?: InputMaybe<Order>;
|
|
552
|
+
deletedAt?: InputMaybe<Order>;
|
|
553
|
+
updatedAt?: InputMaybe<Order>;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
export type ReviewWhere = {
|
|
557
|
+
deleted?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
558
|
+
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
559
|
+
rating_GT?: InputMaybe<Scalars['Float']['input']>;
|
|
560
|
+
rating_GTE?: InputMaybe<Scalars['Float']['input']>;
|
|
561
|
+
rating_LT?: InputMaybe<Scalars['Float']['input']>;
|
|
562
|
+
rating_LTE?: InputMaybe<Scalars['Float']['input']>;
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
export type ReviewWhereUnique = {
|
|
566
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
export enum Role {
|
|
570
|
+
ADMIN = 'ADMIN',
|
|
571
|
+
USER = 'USER'
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export enum SomeEnum {
|
|
575
|
+
A = 'A',
|
|
576
|
+
B = 'B',
|
|
577
|
+
C = 'C'
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
export type SomeObject = {
|
|
581
|
+
__typename: 'SomeObject';
|
|
582
|
+
another: AnotherObject;
|
|
583
|
+
createdAt: Scalars['DateTime']['output'];
|
|
584
|
+
createdBy: User;
|
|
585
|
+
deleted: Scalars['Boolean']['output'];
|
|
586
|
+
deletedAt: Maybe<Scalars['DateTime']['output']>;
|
|
587
|
+
deletedBy: Maybe<User>;
|
|
588
|
+
field: Maybe<Scalars['String']['output']>;
|
|
589
|
+
float: Scalars['Float']['output'];
|
|
590
|
+
id: Scalars['ID']['output'];
|
|
591
|
+
list: Array<SomeEnum>;
|
|
592
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
593
|
+
updatedBy: User;
|
|
594
|
+
xyz: Scalars['Int']['output'];
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
export type SomeObjectlistArgs = {
|
|
599
|
+
magic?: InputMaybe<Scalars['Boolean']['input']>;
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
export type SomeObjectOrderBy = {
|
|
603
|
+
createdAt?: InputMaybe<Order>;
|
|
604
|
+
deletedAt?: InputMaybe<Order>;
|
|
605
|
+
updatedAt?: InputMaybe<Order>;
|
|
606
|
+
xyz?: InputMaybe<Order>;
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
export type SomeObjectWhere = {
|
|
610
|
+
another?: InputMaybe<AnotherObjectWhere>;
|
|
611
|
+
deleted?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
612
|
+
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
export type SomeObjectWhereUnique = {
|
|
616
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
export type SomeRawObject = {
|
|
620
|
+
__typename: 'SomeRawObject';
|
|
621
|
+
field: Maybe<Scalars['String']['output']>;
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
export type UpdateAnswer = {
|
|
625
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
export type UpdateQuestion = {
|
|
629
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
export type UpdateReview = {
|
|
633
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
634
|
+
rating?: InputMaybe<Scalars['Float']['input']>;
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export type UpdateSomeObject = {
|
|
638
|
+
anotherId?: InputMaybe<Scalars['ID']['input']>;
|
|
639
|
+
xyz?: InputMaybe<Scalars['Int']['input']>;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
export type User = {
|
|
643
|
+
__typename: 'User';
|
|
644
|
+
createdAnswers: Array<Answer>;
|
|
645
|
+
createdManyObjects: Array<SomeObject>;
|
|
646
|
+
createdQuestions: Array<Question>;
|
|
647
|
+
createdReactions: Array<Reaction>;
|
|
648
|
+
createdReviews: Array<Review>;
|
|
649
|
+
deletedAnotherObjects: Array<AnotherObject>;
|
|
650
|
+
deletedAnswers: Array<Answer>;
|
|
651
|
+
deletedManyObjects: Array<SomeObject>;
|
|
652
|
+
deletedQuestions: Array<Question>;
|
|
653
|
+
deletedReactions: Array<Reaction>;
|
|
654
|
+
deletedReviews: Array<Review>;
|
|
655
|
+
id: Scalars['ID']['output'];
|
|
656
|
+
role: Maybe<Role>;
|
|
657
|
+
updatedAnswers: Array<Answer>;
|
|
658
|
+
updatedManyObjects: Array<SomeObject>;
|
|
659
|
+
updatedQuestions: Array<Question>;
|
|
660
|
+
updatedReactions: Array<Reaction>;
|
|
661
|
+
updatedReviews: Array<Review>;
|
|
662
|
+
username: Maybe<Scalars['String']['output']>;
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
export type UsercreatedAnswersArgs = {
|
|
667
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
668
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
669
|
+
orderBy?: InputMaybe<Array<AnswerOrderBy>>;
|
|
670
|
+
where?: InputMaybe<AnswerWhere>;
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
export type UsercreatedManyObjectsArgs = {
|
|
675
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
676
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
677
|
+
orderBy?: InputMaybe<Array<SomeObjectOrderBy>>;
|
|
678
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
679
|
+
where?: InputMaybe<SomeObjectWhere>;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
export type UsercreatedQuestionsArgs = {
|
|
684
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
685
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
686
|
+
orderBy?: InputMaybe<Array<QuestionOrderBy>>;
|
|
687
|
+
where?: InputMaybe<QuestionWhere>;
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
export type UsercreatedReactionsArgs = {
|
|
692
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
693
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
694
|
+
orderBy?: InputMaybe<Array<ReactionOrderBy>>;
|
|
695
|
+
where?: InputMaybe<ReactionWhere>;
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
export type UsercreatedReviewsArgs = {
|
|
700
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
701
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
702
|
+
orderBy?: InputMaybe<Array<ReviewOrderBy>>;
|
|
703
|
+
where?: InputMaybe<ReviewWhere>;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
export type UserdeletedAnotherObjectsArgs = {
|
|
708
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
709
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
710
|
+
orderBy?: InputMaybe<Array<AnotherObjectOrderBy>>;
|
|
711
|
+
where?: InputMaybe<AnotherObjectWhere>;
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
export type UserdeletedAnswersArgs = {
|
|
716
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
717
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
718
|
+
orderBy?: InputMaybe<Array<AnswerOrderBy>>;
|
|
719
|
+
where?: InputMaybe<AnswerWhere>;
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
export type UserdeletedManyObjectsArgs = {
|
|
724
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
725
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
726
|
+
orderBy?: InputMaybe<Array<SomeObjectOrderBy>>;
|
|
727
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
728
|
+
where?: InputMaybe<SomeObjectWhere>;
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
export type UserdeletedQuestionsArgs = {
|
|
733
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
734
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
735
|
+
orderBy?: InputMaybe<Array<QuestionOrderBy>>;
|
|
736
|
+
where?: InputMaybe<QuestionWhere>;
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
export type UserdeletedReactionsArgs = {
|
|
741
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
742
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
743
|
+
orderBy?: InputMaybe<Array<ReactionOrderBy>>;
|
|
744
|
+
where?: InputMaybe<ReactionWhere>;
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
export type UserdeletedReviewsArgs = {
|
|
749
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
750
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
751
|
+
orderBy?: InputMaybe<Array<ReviewOrderBy>>;
|
|
752
|
+
where?: InputMaybe<ReviewWhere>;
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
export type UserupdatedAnswersArgs = {
|
|
757
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
758
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
759
|
+
orderBy?: InputMaybe<Array<AnswerOrderBy>>;
|
|
760
|
+
where?: InputMaybe<AnswerWhere>;
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
export type UserupdatedManyObjectsArgs = {
|
|
765
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
766
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
767
|
+
orderBy?: InputMaybe<Array<SomeObjectOrderBy>>;
|
|
768
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
769
|
+
where?: InputMaybe<SomeObjectWhere>;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
export type UserupdatedQuestionsArgs = {
|
|
774
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
775
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
776
|
+
orderBy?: InputMaybe<Array<QuestionOrderBy>>;
|
|
777
|
+
where?: InputMaybe<QuestionWhere>;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
export type UserupdatedReactionsArgs = {
|
|
782
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
783
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
784
|
+
orderBy?: InputMaybe<Array<ReactionOrderBy>>;
|
|
785
|
+
where?: InputMaybe<ReactionWhere>;
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
export type UserupdatedReviewsArgs = {
|
|
790
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
791
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
792
|
+
orderBy?: InputMaybe<Array<ReviewOrderBy>>;
|
|
793
|
+
where?: InputMaybe<ReviewWhere>;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
export type UserWhere = {
|
|
797
|
+
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
export type UserWhereUnique = {
|
|
801
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
export type DeleteAnotherObjectMutationVariables = Exact<{ [key: string]: never; }>;
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
export type DeleteAnotherObjectMutation = { deleteAnotherObject: string };
|
|
808
|
+
|
|
809
|
+
export type GetAnotherObjectQueryVariables = Exact<{ [key: string]: never; }>;
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
export type GetAnotherObjectQuery = { anotherObjects: Array<{ __typename: 'AnotherObject', id: string, deleted: boolean }> };
|
|
813
|
+
|
|
814
|
+
export type GetReactionsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
export type GetReactionsQuery = { reactions: Array<{ __typename: 'Answer', type: ReactionType, content: string | null } | { __typename: 'Question', type: ReactionType, content: string | null } | { __typename: 'Review', rating: number | null, type: ReactionType, content: string | null }> };
|
|
818
|
+
|
|
819
|
+
export type GetReactionQueryVariables = Exact<{ [key: string]: never; }>;
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
export type GetReactionQuery = { reaction: { __typename: 'Answer', type: ReactionType, content: string | null } | { __typename: 'Question', type: ReactionType, content: string | null } | { __typename: 'Review', rating: number | null, type: ReactionType, content: string | null } };
|
|
823
|
+
|
|
824
|
+
export type GetReviewsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
export type GetReviewsQuery = { reviews: Array<{ __typename: 'Review', type: ReactionType, content: string | null, rating: number | null }> };
|
|
828
|
+
|
|
829
|
+
export type GetReviewQueryVariables = Exact<{ [key: string]: never; }>;
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
export type GetReviewQuery = { review: { __typename: 'Review', type: ReactionType, content: string | null, rating: number | null } };
|
|
833
|
+
|
|
834
|
+
export type CreateReviewMutationVariables = Exact<{
|
|
835
|
+
data: CreateReview;
|
|
836
|
+
}>;
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
export type CreateReviewMutation = { createReview: { __typename: 'Review', content: string | null, rating: number | null } };
|
|
840
|
+
|
|
841
|
+
export type UpdateReviewMutationVariables = Exact<{
|
|
842
|
+
id: Scalars['ID']['input'];
|
|
843
|
+
data: UpdateReview;
|
|
844
|
+
}>;
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
export type UpdateReviewMutation = { updateReview: { __typename: 'Review', content: string | null, rating: number | null } };
|
|
848
|
+
|
|
849
|
+
export type SomeQueryQueryVariables = Exact<{ [key: string]: never; }>;
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
export type SomeQueryQuery = { manyObjects: Array<{ __typename: 'SomeObject', id: string, field: string | null, xyz: number, another: { __typename: 'AnotherObject', id: string, manyObjects: Array<{ __typename: 'SomeObject', id: string, field: string | null }> } }> };
|
|
853
|
+
|
|
854
|
+
export type DeleteAnotherObjectMutationMutationVariables = Exact<{
|
|
855
|
+
id: Scalars['ID']['input'];
|
|
856
|
+
}>;
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
export type DeleteAnotherObjectMutationMutation = { deleteAnotherObject: string };
|
|
860
|
+
|
|
861
|
+
export type RestoreAnotherObjectMutationMutationVariables = Exact<{
|
|
862
|
+
id: Scalars['ID']['input'];
|
|
863
|
+
}>;
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
export type RestoreAnotherObjectMutationMutation = { restoreAnotherObject: string };
|
|
867
|
+
|
|
868
|
+
export type CreateSomeObjectMutationMutationVariables = Exact<{
|
|
869
|
+
data: CreateSomeObject;
|
|
870
|
+
}>;
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
export type CreateSomeObjectMutationMutation = { createSomeObject: { __typename: 'SomeObject', id: string } };
|
|
874
|
+
|
|
875
|
+
export type UpdateSomeObjectMutationMutationVariables = Exact<{
|
|
876
|
+
id: Scalars['ID']['input'];
|
|
877
|
+
data: UpdateSomeObject;
|
|
878
|
+
}>;
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
export type UpdateSomeObjectMutationMutation = { updateSomeObject: { __typename: 'SomeObject', id: string } };
|
|
882
|
+
|
|
883
|
+
export type DeleteSomeObjectMutationMutationVariables = Exact<{
|
|
884
|
+
id: Scalars['ID']['input'];
|
|
885
|
+
}>;
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
export type DeleteSomeObjectMutationMutation = { deleteSomeObject: string };
|
|
889
|
+
|
|
890
|
+
export type RestoreSomeObjectMutationMutationVariables = Exact<{
|
|
891
|
+
id: Scalars['ID']['input'];
|
|
892
|
+
}>;
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
export type RestoreSomeObjectMutationMutation = { restoreSomeObject: string };
|
|
896
|
+
|
|
897
|
+
export type CreateReviewMutationMutationVariables = Exact<{
|
|
898
|
+
data: CreateReview;
|
|
899
|
+
}>;
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
export type CreateReviewMutationMutation = { createReview: { __typename: 'Review', id: string } };
|
|
903
|
+
|
|
904
|
+
export type UpdateReviewMutationMutationVariables = Exact<{
|
|
905
|
+
id: Scalars['ID']['input'];
|
|
906
|
+
data: UpdateReview;
|
|
907
|
+
}>;
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
export type UpdateReviewMutationMutation = { updateReview: { __typename: 'Review', id: string } };
|
|
911
|
+
|
|
912
|
+
export type DeleteReviewMutationMutationVariables = Exact<{
|
|
913
|
+
id: Scalars['ID']['input'];
|
|
914
|
+
}>;
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
export type DeleteReviewMutationMutation = { deleteReview: string };
|
|
918
|
+
|
|
919
|
+
export type RestoreReviewMutationMutationVariables = Exact<{
|
|
920
|
+
id: Scalars['ID']['input'];
|
|
921
|
+
}>;
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
export type RestoreReviewMutationMutation = { restoreReview: string };
|
|
925
|
+
|
|
926
|
+
export type CreateQuestionMutationMutationVariables = Exact<{
|
|
927
|
+
data: CreateQuestion;
|
|
928
|
+
}>;
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
export type CreateQuestionMutationMutation = { createQuestion: { __typename: 'Question', id: string } };
|
|
932
|
+
|
|
933
|
+
export type UpdateQuestionMutationMutationVariables = Exact<{
|
|
934
|
+
id: Scalars['ID']['input'];
|
|
935
|
+
data: UpdateQuestion;
|
|
936
|
+
}>;
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
export type UpdateQuestionMutationMutation = { updateQuestion: { __typename: 'Question', id: string } };
|
|
940
|
+
|
|
941
|
+
export type DeleteQuestionMutationMutationVariables = Exact<{
|
|
942
|
+
id: Scalars['ID']['input'];
|
|
943
|
+
}>;
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
export type DeleteQuestionMutationMutation = { deleteQuestion: string };
|
|
947
|
+
|
|
948
|
+
export type RestoreQuestionMutationMutationVariables = Exact<{
|
|
949
|
+
id: Scalars['ID']['input'];
|
|
950
|
+
}>;
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
export type RestoreQuestionMutationMutation = { restoreQuestion: string };
|
|
954
|
+
|
|
955
|
+
export type CreateAnswerMutationMutationVariables = Exact<{
|
|
956
|
+
data: CreateAnswer;
|
|
957
|
+
}>;
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
export type CreateAnswerMutationMutation = { createAnswer: { __typename: 'Answer', id: string } };
|
|
961
|
+
|
|
962
|
+
export type UpdateAnswerMutationMutationVariables = Exact<{
|
|
963
|
+
id: Scalars['ID']['input'];
|
|
964
|
+
data: UpdateAnswer;
|
|
965
|
+
}>;
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
export type UpdateAnswerMutationMutation = { updateAnswer: { __typename: 'Answer', id: string } };
|
|
969
|
+
|
|
970
|
+
export type DeleteAnswerMutationMutationVariables = Exact<{
|
|
971
|
+
id: Scalars['ID']['input'];
|
|
972
|
+
}>;
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
export type DeleteAnswerMutationMutation = { deleteAnswer: string };
|
|
976
|
+
|
|
977
|
+
export type RestoreAnswerMutationMutationVariables = Exact<{
|
|
978
|
+
id: Scalars['ID']['input'];
|
|
979
|
+
}>;
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
export type RestoreAnswerMutationMutation = { restoreAnswer: string };
|
|
983
|
+
|
|
984
|
+
export type AnotherQueryQueryVariables = Exact<{ [key: string]: never; }>;
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
export type AnotherQueryQuery = { manyObjects: Array<{ __typename: 'SomeObject', id: string, field: string | null, another: { __typename: 'AnotherObject', id: string, manyObjects: Array<{ __typename: 'SomeObject', id: string, field: string | null }> } }> };
|
|
988
|
+
|
|
989
|
+
export type YetAnotherQueryQueryVariables = Exact<{ [key: string]: never; }>;
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
export type YetAnotherQueryQuery = { someObject: { __typename: 'SomeObject', id: string, field: string | null } };
|
|
993
|
+
|
|
994
|
+
type DiscriminateUnion<T, U> = T extends U ? T : never;
|
|
995
|
+
|
|
996
|
+
export namespace DeleteAnotherObject {
|
|
997
|
+
export type Variables = DeleteAnotherObjectMutationVariables;
|
|
998
|
+
export type mutation = DeleteAnotherObjectMutation;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
export namespace GetAnotherObject {
|
|
1002
|
+
export type Variables = GetAnotherObjectQueryVariables;
|
|
1003
|
+
export type query = GetAnotherObjectQuery;
|
|
1004
|
+
export type anotherObjects = NonNullable<(NonNullable<GetAnotherObjectQuery['anotherObjects']>)[number]>;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
export namespace GetReactions {
|
|
1008
|
+
export type Variables = GetReactionsQueryVariables;
|
|
1009
|
+
export type query = GetReactionsQuery;
|
|
1010
|
+
export type reactions = NonNullable<(NonNullable<GetReactionsQuery['reactions']>)[number]>;
|
|
1011
|
+
export type ReviewInlineFragment = (DiscriminateUnion<NonNullable<(NonNullable<GetReactionsQuery['reactions']>)[number]>, { __typename: 'Review' }>);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
export namespace GetReaction {
|
|
1015
|
+
export type Variables = GetReactionQueryVariables;
|
|
1016
|
+
export type query = GetReactionQuery;
|
|
1017
|
+
export type reaction = (NonNullable<GetReactionQuery['reaction']>);
|
|
1018
|
+
export type ReviewInlineFragment = (DiscriminateUnion<(NonNullable<GetReactionQuery['reaction']>), { __typename: 'Review' }>);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
export namespace GetReviews {
|
|
1022
|
+
export type Variables = GetReviewsQueryVariables;
|
|
1023
|
+
export type query = GetReviewsQuery;
|
|
1024
|
+
export type reviews = NonNullable<(NonNullable<GetReviewsQuery['reviews']>)[number]>;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export namespace GetReview {
|
|
1028
|
+
export type Variables = GetReviewQueryVariables;
|
|
1029
|
+
export type query = GetReviewQuery;
|
|
1030
|
+
export type review = (NonNullable<GetReviewQuery['review']>);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
export namespace CreateReview {
|
|
1034
|
+
export type Variables = CreateReviewMutationVariables;
|
|
1035
|
+
export type mutation = CreateReviewMutation;
|
|
1036
|
+
export type createReview = (NonNullable<CreateReviewMutation['createReview']>);
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export namespace UpdateReview {
|
|
1040
|
+
export type Variables = UpdateReviewMutationVariables;
|
|
1041
|
+
export type mutation = UpdateReviewMutation;
|
|
1042
|
+
export type updateReview = (NonNullable<UpdateReviewMutation['updateReview']>);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
export namespace SomeQuery {
|
|
1046
|
+
export type Variables = SomeQueryQueryVariables;
|
|
1047
|
+
export type query = SomeQueryQuery;
|
|
1048
|
+
export type manyObjects = NonNullable<(NonNullable<SomeQueryQuery['manyObjects']>)[number]>;
|
|
1049
|
+
export type another = (NonNullable<NonNullable<(NonNullable<SomeQueryQuery['manyObjects']>)[number]>['another']>);
|
|
1050
|
+
export type _manyObjects = NonNullable<(NonNullable<(NonNullable<NonNullable<(NonNullable<SomeQueryQuery['manyObjects']>)[number]>['another']>)['manyObjects']>)[number]>;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export namespace DeleteAnotherObjectMutation {
|
|
1054
|
+
export type Variables = DeleteAnotherObjectMutationMutationVariables;
|
|
1055
|
+
export type mutation = DeleteAnotherObjectMutationMutation;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
export namespace RestoreAnotherObjectMutation {
|
|
1059
|
+
export type Variables = RestoreAnotherObjectMutationMutationVariables;
|
|
1060
|
+
export type mutation = RestoreAnotherObjectMutationMutation;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
export namespace CreateSomeObjectMutation {
|
|
1064
|
+
export type Variables = CreateSomeObjectMutationMutationVariables;
|
|
1065
|
+
export type mutation = CreateSomeObjectMutationMutation;
|
|
1066
|
+
export type createSomeObject = (NonNullable<CreateSomeObjectMutationMutation['createSomeObject']>);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
export namespace UpdateSomeObjectMutation {
|
|
1070
|
+
export type Variables = UpdateSomeObjectMutationMutationVariables;
|
|
1071
|
+
export type mutation = UpdateSomeObjectMutationMutation;
|
|
1072
|
+
export type updateSomeObject = (NonNullable<UpdateSomeObjectMutationMutation['updateSomeObject']>);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
export namespace DeleteSomeObjectMutation {
|
|
1076
|
+
export type Variables = DeleteSomeObjectMutationMutationVariables;
|
|
1077
|
+
export type mutation = DeleteSomeObjectMutationMutation;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
export namespace RestoreSomeObjectMutation {
|
|
1081
|
+
export type Variables = RestoreSomeObjectMutationMutationVariables;
|
|
1082
|
+
export type mutation = RestoreSomeObjectMutationMutation;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export namespace CreateReviewMutation {
|
|
1086
|
+
export type Variables = CreateReviewMutationMutationVariables;
|
|
1087
|
+
export type mutation = CreateReviewMutationMutation;
|
|
1088
|
+
export type createReview = (NonNullable<CreateReviewMutationMutation['createReview']>);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
export namespace UpdateReviewMutation {
|
|
1092
|
+
export type Variables = UpdateReviewMutationMutationVariables;
|
|
1093
|
+
export type mutation = UpdateReviewMutationMutation;
|
|
1094
|
+
export type updateReview = (NonNullable<UpdateReviewMutationMutation['updateReview']>);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export namespace DeleteReviewMutation {
|
|
1098
|
+
export type Variables = DeleteReviewMutationMutationVariables;
|
|
1099
|
+
export type mutation = DeleteReviewMutationMutation;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export namespace RestoreReviewMutation {
|
|
1103
|
+
export type Variables = RestoreReviewMutationMutationVariables;
|
|
1104
|
+
export type mutation = RestoreReviewMutationMutation;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
export namespace CreateQuestionMutation {
|
|
1108
|
+
export type Variables = CreateQuestionMutationMutationVariables;
|
|
1109
|
+
export type mutation = CreateQuestionMutationMutation;
|
|
1110
|
+
export type createQuestion = (NonNullable<CreateQuestionMutationMutation['createQuestion']>);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
export namespace UpdateQuestionMutation {
|
|
1114
|
+
export type Variables = UpdateQuestionMutationMutationVariables;
|
|
1115
|
+
export type mutation = UpdateQuestionMutationMutation;
|
|
1116
|
+
export type updateQuestion = (NonNullable<UpdateQuestionMutationMutation['updateQuestion']>);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
export namespace DeleteQuestionMutation {
|
|
1120
|
+
export type Variables = DeleteQuestionMutationMutationVariables;
|
|
1121
|
+
export type mutation = DeleteQuestionMutationMutation;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
export namespace RestoreQuestionMutation {
|
|
1125
|
+
export type Variables = RestoreQuestionMutationMutationVariables;
|
|
1126
|
+
export type mutation = RestoreQuestionMutationMutation;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export namespace CreateAnswerMutation {
|
|
1130
|
+
export type Variables = CreateAnswerMutationMutationVariables;
|
|
1131
|
+
export type mutation = CreateAnswerMutationMutation;
|
|
1132
|
+
export type createAnswer = (NonNullable<CreateAnswerMutationMutation['createAnswer']>);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
export namespace UpdateAnswerMutation {
|
|
1136
|
+
export type Variables = UpdateAnswerMutationMutationVariables;
|
|
1137
|
+
export type mutation = UpdateAnswerMutationMutation;
|
|
1138
|
+
export type updateAnswer = (NonNullable<UpdateAnswerMutationMutation['updateAnswer']>);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
export namespace DeleteAnswerMutation {
|
|
1142
|
+
export type Variables = DeleteAnswerMutationMutationVariables;
|
|
1143
|
+
export type mutation = DeleteAnswerMutationMutation;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export namespace RestoreAnswerMutation {
|
|
1147
|
+
export type Variables = RestoreAnswerMutationMutationVariables;
|
|
1148
|
+
export type mutation = RestoreAnswerMutationMutation;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
export namespace AnotherQuery {
|
|
1152
|
+
export type Variables = AnotherQueryQueryVariables;
|
|
1153
|
+
export type query = AnotherQueryQuery;
|
|
1154
|
+
export type manyObjects = NonNullable<(NonNullable<AnotherQueryQuery['manyObjects']>)[number]>;
|
|
1155
|
+
export type another = (NonNullable<NonNullable<(NonNullable<AnotherQueryQuery['manyObjects']>)[number]>['another']>);
|
|
1156
|
+
export type _manyObjects = NonNullable<(NonNullable<(NonNullable<NonNullable<(NonNullable<AnotherQueryQuery['manyObjects']>)[number]>['another']>)['manyObjects']>)[number]>;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
export namespace YetAnotherQuery {
|
|
1160
|
+
export type Variables = YetAnotherQueryQueryVariables;
|
|
1161
|
+
export type query = YetAnotherQueryQuery;
|
|
1162
|
+
export type someObject = (NonNullable<YetAnotherQueryQuery['someObject']>);
|
|
1163
|
+
}
|