If you have draft/published mode enabled on some of your models, you can use the https://graphql.datocms.com/preview
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: "https://graphql.datocms.com/preview",headers: {"Authorization": "Bearer YOUR_API_TOKEN",}});