author import 'reflect-metadata' ; import { Field , ObjectType } from 'type-graphql' ; @ ObjectType ( ) export class PageInfo { constructor ( hasNextPage , hasPreviousPage , startCursor , endCursor ) { this . hasNextPage = hasNextPage ; this . hasPreviousPage = hasPreviousPage ; this . startCursor = startCursor ; this . endCursor = endCursor ; } @ Field ( ( ) => Boolean ) readonly hasNextPage : boolean ; @ Field ( ( ) => Boolean ) readonly hasPreviousPage : boolean ; @ Field ( ( ) => String ) readonly startCursor : string ; @ Field ( ( ) => String ) readonly endCursor : string ; }