Skip to main content

Class: PageInfo<CursorType>

PageInfo is information about the paging/cursoring happening on the server. You can use this information to request either the next or previous pages. Use it in conjunction with the ForwardPaginationArgs and BackwardPaginationArgs.

Type parameters​

NameType
CursorTypeextends Cursor = Cursor

Constructors​

constructor​

• new PageInfo<CursorType>(): PageInfo<CursorType>

Type parameters​

NameType
CursorTypeextends Cursor = Cursor

Returns​

PageInfo<CursorType>

Properties​

endCursor​

• Optional endCursor: CursorType

The cursor representing the last record from the returned query. Can be used to query before or after this record.

Defined in​

index.ts:144


hasNextPage​

• hasNextPage: boolean

Whether the query has more records after the end cursor.

Defined in​

index.ts:114


hasPreviousPage​

• hasPreviousPage: boolean

Whether the query has more records before the start cursor.

Defined in​

index.ts:122


startCursor​

• Optional startCursor: CursorType

The cursor representing the first record from the returned query. Can be used to query before or after this record.

Defined in​

index.ts:134