File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export interface NexusGenObjects {
56
56
}
57
57
Feed : { // root type
58
58
count : number ; // Int!
59
+ id ?: string | null ; // ID
59
60
links : NexusGenRootTypes [ 'Link' ] [ ] ; // [Link!]!
60
61
}
61
62
Link : { // root type
@@ -94,6 +95,7 @@ export interface NexusGenFieldTypes {
94
95
}
95
96
Feed : { // field return type
96
97
count : number ; // Int!
98
+ id : string | null ; // ID
97
99
links : NexusGenRootTypes [ 'Link' ] [ ] ; // [Link!]!
98
100
}
99
101
Link : { // field return type
@@ -133,6 +135,7 @@ export interface NexusGenFieldTypeNames {
133
135
}
134
136
Feed : { // field return type name
135
137
count : 'Int'
138
+ id : 'ID'
136
139
links : 'Link'
137
140
}
138
141
Link : { // field return type name
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ scalar DateTime
14
14
15
15
type Feed {
16
16
count : Int !
17
+ id : ID
17
18
links : [Link ! ]!
18
19
}
19
20
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export const Feed = objectType({
42
42
definition ( t ) {
43
43
t . nonNull . list . nonNull . field ( "links" , { type : Link } ) ;
44
44
t . nonNull . int ( "count" ) ;
45
+ t . id ( "id" ) ;
45
46
} ,
46
47
} ) ;
47
48
@@ -89,10 +90,12 @@ export const LinkQuery = extendType({
89
90
} ) ;
90
91
91
92
const count = await context . prisma . link . count ( { where } ) ;
92
-
93
+ const id = `main-feed:${ JSON . stringify ( args ) } ` ;
94
+
93
95
return {
94
96
links,
95
97
count,
98
+ id,
96
99
} ;
97
100
} ,
98
101
} ) ;
You can’t perform that action at this time.
0 commit comments