Skip to main content

InterfaceConnectionData

Admin Docs


Interface: InterfaceConnectionData<TNode>

Defined in: src/types/CursorPagination/interface.ts:26

Represents the GraphQL connection structure with edges and pageInfo. This follows the Relay cursor pagination specification.

Remarks​

While the Relay spec requires both edges and pageInfo, this interface makes pageInfo optional to gracefully handle incomplete responses. When pageInfo is missing, items are still rendered but pagination is disabled.

Type Parameters​

TNode​

TNode

The type of individual items in the connection

Properties​

edges​

edges: object[]

Defined in: src/types/CursorPagination/interface.ts:27

cursor​

cursor: string

node​

node: TNode


pageInfo?​

optional pageInfo: DefaultConnectionPageInfo

Defined in: src/types/CursorPagination/interface.ts:31