Skip to main content
Version: v10.0.0

RelayConnection

A Relay connection, the shape many GraphQL APIs use for paginated lists


Import
import { RelayConnection } from "@hyper-fetch/db"

Preview​

type RelayConnection<Node> = {
edges?: readonly ({ node: Node } | null)[] | null;
pageInfo: { endCursor?: string | null; hasNextPage: boolean };
}

Structure​

RelayConnection
NameTypeDescription
edges
readonly ({ node: Node } | null)[] | null
pageInfo
{ endCursor?: string | null; hasNextPage: boolean }