Skip to content

Commit 2596b8d

Browse files
added upvote mutation
1 parent 3827189 commit 2596b8d

File tree

10 files changed

+197
-164
lines changed

10 files changed

+197
-164
lines changed

packages/server/.yoga/nexus-prisma/datamodel-info.ts

Lines changed: 45 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -4377,13 +4377,9 @@ export default {
43774377
"description": null,
43784378
"args": [],
43794379
"type": {
4380-
"kind": "NON_NULL",
4381-
"name": null,
4382-
"ofType": {
4383-
"kind": "SCALAR",
4384-
"name": "Boolean",
4385-
"ofType": null
4386-
}
4380+
"kind": "SCALAR",
4381+
"name": "Boolean",
4382+
"ofType": null
43874383
},
43884384
"isDeprecated": false,
43894385
"deprecationReason": null
@@ -4393,13 +4389,9 @@ export default {
43934389
"description": null,
43944390
"args": [],
43954391
"type": {
4396-
"kind": "NON_NULL",
4397-
"name": null,
4398-
"ofType": {
4399-
"kind": "SCALAR",
4400-
"name": "Boolean",
4401-
"ofType": null
4402-
}
4392+
"kind": "SCALAR",
4393+
"name": "Boolean",
4394+
"ofType": null
44034395
},
44044396
"isDeprecated": false,
44054397
"deprecationReason": null
@@ -4409,13 +4401,9 @@ export default {
44094401
"description": null,
44104402
"args": [],
44114403
"type": {
4412-
"kind": "NON_NULL",
4413-
"name": null,
4414-
"ofType": {
4415-
"kind": "SCALAR",
4416-
"name": "Int",
4417-
"ofType": null
4418-
}
4404+
"kind": "SCALAR",
4405+
"name": "Int",
4406+
"ofType": null
44194407
},
44204408
"isDeprecated": false,
44214409
"deprecationReason": null
@@ -6310,41 +6298,29 @@ export default {
63106298
"name": "upvoted",
63116299
"description": null,
63126300
"type": {
6313-
"kind": "NON_NULL",
6314-
"name": null,
6315-
"ofType": {
6316-
"kind": "SCALAR",
6317-
"name": "Boolean",
6318-
"ofType": null
6319-
}
6301+
"kind": "SCALAR",
6302+
"name": "Boolean",
6303+
"ofType": null
63206304
},
63216305
"defaultValue": null
63226306
},
63236307
{
63246308
"name": "saved",
63256309
"description": null,
63266310
"type": {
6327-
"kind": "NON_NULL",
6328-
"name": null,
6329-
"ofType": {
6330-
"kind": "SCALAR",
6331-
"name": "Boolean",
6332-
"ofType": null
6333-
}
6311+
"kind": "SCALAR",
6312+
"name": "Boolean",
6313+
"ofType": null
63346314
},
63356315
"defaultValue": null
63366316
},
63376317
{
63386318
"name": "currentChapter",
63396319
"description": null,
63406320
"type": {
6341-
"kind": "NON_NULL",
6342-
"name": null,
6343-
"ofType": {
6344-
"kind": "SCALAR",
6345-
"name": "Int",
6346-
"ofType": null
6347-
}
6321+
"kind": "SCALAR",
6322+
"name": "Int",
6323+
"ofType": null
63486324
},
63496325
"defaultValue": null
63506326
}
@@ -7840,41 +7816,29 @@ export default {
78407816
"name": "upvoted",
78417817
"description": null,
78427818
"type": {
7843-
"kind": "NON_NULL",
7844-
"name": null,
7845-
"ofType": {
7846-
"kind": "SCALAR",
7847-
"name": "Boolean",
7848-
"ofType": null
7849-
}
7819+
"kind": "SCALAR",
7820+
"name": "Boolean",
7821+
"ofType": null
78507822
},
78517823
"defaultValue": null
78527824
},
78537825
{
78547826
"name": "saved",
78557827
"description": null,
78567828
"type": {
7857-
"kind": "NON_NULL",
7858-
"name": null,
7859-
"ofType": {
7860-
"kind": "SCALAR",
7861-
"name": "Boolean",
7862-
"ofType": null
7863-
}
7829+
"kind": "SCALAR",
7830+
"name": "Boolean",
7831+
"ofType": null
78647832
},
78657833
"defaultValue": null
78667834
},
78677835
{
78687836
"name": "currentChapter",
78697837
"description": null,
78707838
"type": {
7871-
"kind": "NON_NULL",
7872-
"name": null,
7873-
"ofType": {
7874-
"kind": "SCALAR",
7875-
"name": "Int",
7876-
"ofType": null
7877-
}
7839+
"kind": "SCALAR",
7840+
"name": "Int",
7841+
"ofType": null
78787842
},
78797843
"defaultValue": null
78807844
}
@@ -8478,41 +8442,29 @@ export default {
84788442
"name": "upvoted",
84798443
"description": null,
84808444
"type": {
8481-
"kind": "NON_NULL",
8482-
"name": null,
8483-
"ofType": {
8484-
"kind": "SCALAR",
8485-
"name": "Boolean",
8486-
"ofType": null
8487-
}
8445+
"kind": "SCALAR",
8446+
"name": "Boolean",
8447+
"ofType": null
84888448
},
84898449
"defaultValue": null
84908450
},
84918451
{
84928452
"name": "saved",
84938453
"description": null,
84948454
"type": {
8495-
"kind": "NON_NULL",
8496-
"name": null,
8497-
"ofType": {
8498-
"kind": "SCALAR",
8499-
"name": "Boolean",
8500-
"ofType": null
8501-
}
8455+
"kind": "SCALAR",
8456+
"name": "Boolean",
8457+
"ofType": null
85028458
},
85038459
"defaultValue": null
85048460
},
85058461
{
85068462
"name": "currentChapter",
85078463
"description": null,
85088464
"type": {
8509-
"kind": "NON_NULL",
8510-
"name": null,
8511-
"ofType": {
8512-
"kind": "SCALAR",
8513-
"name": "Int",
8514-
"ofType": null
8515-
}
8465+
"kind": "SCALAR",
8466+
"name": "Int",
8467+
"ofType": null
85168468
},
85178469
"defaultValue": null
85188470
}
@@ -9723,13 +9675,9 @@ export default {
97239675
"description": null,
97249676
"args": [],
97259677
"type": {
9726-
"kind": "NON_NULL",
9727-
"name": null,
9728-
"ofType": {
9729-
"kind": "SCALAR",
9730-
"name": "Boolean",
9731-
"ofType": null
9732-
}
9678+
"kind": "SCALAR",
9679+
"name": "Boolean",
9680+
"ofType": null
97339681
},
97349682
"isDeprecated": false,
97359683
"deprecationReason": null
@@ -9739,13 +9687,9 @@ export default {
97399687
"description": null,
97409688
"args": [],
97419689
"type": {
9742-
"kind": "NON_NULL",
9743-
"name": null,
9744-
"ofType": {
9745-
"kind": "SCALAR",
9746-
"name": "Boolean",
9747-
"ofType": null
9748-
}
9690+
"kind": "SCALAR",
9691+
"name": "Boolean",
9692+
"ofType": null
97499693
},
97509694
"isDeprecated": false,
97519695
"deprecationReason": null
@@ -9755,13 +9699,9 @@ export default {
97559699
"description": null,
97569700
"args": [],
97579701
"type": {
9758-
"kind": "NON_NULL",
9759-
"name": null,
9760-
"ofType": {
9761-
"kind": "SCALAR",
9762-
"name": "Int",
9763-
"ofType": null
9764-
}
9702+
"kind": "SCALAR",
9703+
"name": "Int",
9704+
"ofType": null
97659705
},
97669706
"isDeprecated": false,
97679707
"deprecationReason": null

packages/server/.yoga/nexus-prisma/nexus-prisma.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -552,23 +552,23 @@ export interface UserTutorialFieldDetails {
552552
args: {}
553553
description: string
554554
list: undefined
555-
nullable: false
555+
nullable: true
556556
resolve: undefined
557557
}
558558
saved: {
559559
type: 'Boolean'
560560
args: {}
561561
description: string
562562
list: undefined
563-
nullable: false
563+
nullable: true
564564
resolve: undefined
565565
}
566566
currentChapter: {
567567
type: 'Int'
568568
args: {}
569569
description: string
570570
list: undefined
571-
nullable: false
571+
nullable: true
572572
resolve: undefined
573573
}
574574
}
@@ -1861,23 +1861,23 @@ export interface UserTutorialPreviousValuesFieldDetails {
18611861
args: {}
18621862
description: string
18631863
list: undefined
1864-
nullable: false
1864+
nullable: true
18651865
resolve: undefined
18661866
}
18671867
saved: {
18681868
type: 'Boolean'
18691869
args: {}
18701870
description: string
18711871
list: undefined
1872-
nullable: false
1872+
nullable: true
18731873
resolve: undefined
18741874
}
18751875
currentChapter: {
18761876
type: 'Int'
18771877
args: {}
18781878
description: string
18791879
list: undefined
1880-
nullable: false
1880+
nullable: true
18811881
resolve: undefined
18821882
}
18831883
}
@@ -2669,9 +2669,9 @@ export type UserTutorialCreateManyWithoutUserInputInputObject =
26692669

26702670
export interface UserTutorialCreateWithoutUserInput {
26712671
tutorial?: TutorialCreateOneWithoutUserTutorialsInput | null
2672-
upvoted?: boolean
2673-
saved?: boolean
2674-
currentChapter?: number
2672+
upvoted?: boolean | null
2673+
saved?: boolean | null
2674+
currentChapter?: number | null
26752675
}
26762676
export type UserTutorialCreateWithoutUserInputInputObject =
26772677
| Extract<keyof UserTutorialCreateWithoutUserInput, string>
@@ -2963,9 +2963,9 @@ export type UserUpdateManyMutationInputInputObject =
29632963
export interface UserTutorialCreateInput {
29642964
user?: UserCreateOneWithoutUserTutorialsInput | null
29652965
tutorial?: TutorialCreateOneWithoutUserTutorialsInput | null
2966-
upvoted?: boolean
2967-
saved?: boolean
2968-
currentChapter?: number
2966+
upvoted?: boolean | null
2967+
saved?: boolean | null
2968+
currentChapter?: number | null
29692969
}
29702970
export type UserTutorialCreateInputInputObject =
29712971
| Extract<keyof UserTutorialCreateInput, string>
@@ -3106,9 +3106,9 @@ export type UserTutorialCreateManyWithoutTutorialInputInputObject =
31063106

31073107
export interface UserTutorialCreateWithoutTutorialInput {
31083108
user?: UserCreateOneWithoutUserTutorialsInput | null
3109-
upvoted?: boolean
3110-
saved?: boolean
3111-
currentChapter?: number
3109+
upvoted?: boolean | null
3110+
saved?: boolean | null
3111+
currentChapter?: number | null
31123112
}
31133113
export type UserTutorialCreateWithoutTutorialInputInputObject =
31143114
| Extract<keyof UserTutorialCreateWithoutTutorialInput, string>

0 commit comments

Comments
 (0)