React > Accessing draft/updated content

    Accessing draft/updated content

    If you have draft/published mode enabled on some of your models, you can use the X-Include-Drafts header to access records at their latest version available, instead of the currently published one:

    const client = new GraphQLClient({
    url: "",
    headers: {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "X-Include-Drafts": "true",
    We use cookies to enhance the user experience. Do you consent their use in accordance with our cookie policy?