InterfaceConnectionData
Interface: InterfaceConnectionData<TNode>
Defined in: src/types/CursorPagination/interface.ts:23
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:24
cursor
cursor:
string
node
node:
TNode
pageInfo?
optionalpageInfo:DefaultConnectionPageInfo
Defined in: src/types/CursorPagination/interface.ts:28