Migrate to a monorepo structure (#2909)
This commit is contained in:
19
packages/twenty-server/src/utils/pagination/page-info.ts
Normal file
19
packages/twenty-server/src/utils/pagination/page-info.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { Field, ObjectType } from '@nestjs/graphql';
|
||||
|
||||
import { IPageInfo } from './interfaces/page-info.interface';
|
||||
import { ConnectionCursor } from './interfaces/connection-cursor.type';
|
||||
|
||||
@ObjectType({ isAbstract: true })
|
||||
export class PageInfo implements IPageInfo {
|
||||
@Field({ nullable: true })
|
||||
public startCursor!: ConnectionCursor;
|
||||
|
||||
@Field({ nullable: true })
|
||||
public endCursor!: ConnectionCursor;
|
||||
|
||||
@Field(() => Boolean)
|
||||
public hasPreviousPage!: boolean;
|
||||
|
||||
@Field(() => Boolean)
|
||||
public hasNextPage!: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user