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