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 {
5656 }
5757 Feed : { // root type
5858 count : number ; // Int!
59+ id ?: string | null ; // ID
5960 links : NexusGenRootTypes [ 'Link' ] [ ] ; // [Link!]!
6061 }
6162 Link : { // root type
@@ -94,6 +95,7 @@ export interface NexusGenFieldTypes {
9495 }
9596 Feed : { // field return type
9697 count : number ; // Int!
98+ id : string | null ; // ID
9799 links : NexusGenRootTypes [ 'Link' ] [ ] ; // [Link!]!
98100 }
99101 Link : { // field return type
@@ -133,6 +135,7 @@ export interface NexusGenFieldTypeNames {
133135 }
134136 Feed : { // field return type name
135137 count : 'Int'
138+ id : 'ID'
136139 links : 'Link'
137140 }
138141 Link : { // field return type name
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ scalar DateTime
1414
1515type Feed {
1616 count : Int !
17+ id : ID
1718 links : [Link ! ]!
1819}
1920
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export const Feed = objectType({
4242 definition ( t ) {
4343 t . nonNull . list . nonNull . field ( "links" , { type : Link } ) ;
4444 t . nonNull . int ( "count" ) ;
45+ t . id ( "id" ) ;
4546 } ,
4647} ) ;
4748
@@ -89,10 +90,12 @@ export const LinkQuery = extendType({
8990 } ) ;
9091
9192 const count = await context . prisma . link . count ( { where } ) ;
92-
93+ const id = `main-feed:${ JSON . stringify ( args ) } ` ;
94+
9395 return {
9496 links,
9597 count,
98+ id,
9699 } ;
97100 } ,
98101 } ) ;
You can’t perform that action at this time.
0 commit comments