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 endpoint to access records at their latest version available, instead of the currently published.

    Both endpoints offer exactly the same queries, the only thing that will change will be the returned content.

    const client = new GraphQLClient({
    url: "",
    headers: {
    "Authorization": "Bearer YOUR_API_TOKEN",