• Generates an API client that can be used inside a Next.js Server Component with Dynamic Rendering

    Type Parameters

    • T extends Record<any, any> = never

    Parameters

    Returns V6ClientSSRCookies<T>

    Example

    import { cookies } from "next/headers"

    const client = generateServerClientUsingCookies({ cookies });
    const result = await client.graphql({ query: listPosts });