@@ -49,11 +49,18 @@ export type UpdatePagesMutation = {
49
49
} | null ;
50
50
} ;
51
51
52
- export type PagesQueryVariables = Types . Exact < { [ key : string ] : never } > ;
52
+ export type FreshPagesQueryVariables = Types . Exact < {
53
+ limit : Types . Scalars [ 'Int' ] ;
54
+ } > ;
53
55
54
- export type PagesQuery = {
56
+ export type FreshPagesQuery = {
55
57
__typename ?: 'query_root' ;
56
- pages : Array < { __typename ?: 'Page' ; id : string ; url : string } > ;
58
+ pages : Array < {
59
+ __typename ?: 'Page' ;
60
+ id : string ;
61
+ url : string ;
62
+ createdAt : string ;
63
+ } > ;
57
64
} ;
58
65
59
66
export type PageByUrlOnlyQueryVariables = Types . Exact < {
@@ -447,32 +454,70 @@ export const UpdatePagesDocument = {
447
454
} ,
448
455
] ,
449
456
} as unknown as DocumentNode < UpdatePagesMutation , UpdatePagesMutationVariables > ;
450
- export const PagesDocument = {
457
+ export const FreshPagesDocument = {
451
458
kind : 'Document' ,
452
459
definitions : [
453
460
{
454
461
kind : 'OperationDefinition' ,
455
462
operation : 'query' ,
456
- name : { kind : 'Name' , value : 'pages' } ,
463
+ name : { kind : 'Name' , value : 'freshPages' } ,
464
+ variableDefinitions : [
465
+ {
466
+ kind : 'VariableDefinition' ,
467
+ variable : {
468
+ kind : 'Variable' ,
469
+ name : { kind : 'Name' , value : 'limit' } ,
470
+ } ,
471
+ type : {
472
+ kind : 'NonNullType' ,
473
+ type : { kind : 'NamedType' , name : { kind : 'Name' , value : 'Int' } } ,
474
+ } ,
475
+ } ,
476
+ ] ,
457
477
selectionSet : {
458
478
kind : 'SelectionSet' ,
459
479
selections : [
460
480
{
461
481
kind : 'Field' ,
462
482
name : { kind : 'Name' , value : 'pages' } ,
483
+ arguments : [
484
+ {
485
+ kind : 'Argument' ,
486
+ name : { kind : 'Name' , value : 'order_by' } ,
487
+ value : {
488
+ kind : 'ObjectValue' ,
489
+ fields : [
490
+ {
491
+ kind : 'ObjectField' ,
492
+ name : { kind : 'Name' , value : 'createdAt' } ,
493
+ value : { kind : 'EnumValue' , value : 'desc' } ,
494
+ } ,
495
+ ] ,
496
+ } ,
497
+ } ,
498
+ {
499
+ kind : 'Argument' ,
500
+ name : { kind : 'Name' , value : 'limit' } ,
501
+ value : {
502
+ kind : 'Variable' ,
503
+ name : { kind : 'Name' , value : 'limit' } ,
504
+ } ,
505
+ } ,
506
+ ] ,
463
507
selectionSet : {
464
508
kind : 'SelectionSet' ,
465
509
selections : [
466
510
{ kind : 'Field' , name : { kind : 'Name' , value : 'id' } } ,
467
511
{ kind : 'Field' , name : { kind : 'Name' , value : 'url' } } ,
512
+ { kind : 'Field' , name : { kind : 'Name' , value : 'createdAt' } } ,
468
513
] ,
469
514
} ,
470
515
} ,
471
516
] ,
472
517
} ,
473
518
} ,
474
519
] ,
475
- } as unknown as DocumentNode < PagesQuery , PagesQueryVariables > ;
520
+ } as unknown as DocumentNode < FreshPagesQuery , FreshPagesQueryVariables > ;
476
521
export const PageByUrlOnlyDocument = {
477
522
kind : 'Document' ,
478
523
definitions : [
0 commit comments