Sandro Volpicella
complete
Hi,
you have access to drafts on our new GQL API
{
publication(host: "sandro.volpee.de") {
drafts(first: 10) {
edges {
node {
title
}
}
}
}
}
LMK if that doesn't solve it
Link: https://gql.hashnode.com
Sandro Volpicella
Hi JoLo
I'm not 100% sure what you mean with a draft flag. But on our new API you have access to your drafts. You can check out the playground here: https://gql.hashnode.com
Check this blog post if you want to be part of the beta program:
Accessing drafts is only possible for authenticated users. That means you need to pass an
Authorization
header to access them OR you need to be logged in on hashnode.com.You can then use this query:
{
publication(host: "sandro.volpee.de") {
drafts(first: 10) {
edges {
node {
title
}
}
}
}
}
JoLo
Hi Sandro Volpicella,
I meant to draft your post instead of publish :)
Sandro Volpicella
JoLo: Ah okay. Can you check if this is solving it on the new API, please? :)
Kavir
Hi JoLo we're working on improvements to our APIs and will provide an update on this soon!