// Helper: Extracts nodes from a GraphQL connection object, returning an empty array if nodes are absent. export function extractNodes(connection: { nodes?: T[] } | null | undefined): T[] { return connection?.nodes || [] as T[]; }