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​
| Name | Type |
|---|---|
CursorType | extends Cursor = Cursor |
Constructors​
constructor​
• new PageInfo<CursorType>(): PageInfo<CursorType>
Type parameters​
| Name | Type |
|---|---|
CursorType | extends 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​
hasNextPage​
• hasNextPage: boolean
Whether the query has more records after the end cursor.
Defined in​
hasPreviousPage​
• hasPreviousPage: boolean
Whether the query has more records before the start cursor.
Defined in​
startCursor​
• Optional startCursor: CursorType
The cursor representing the first record from the returned query. Can be used to query before or after this record.