A publication is a blog that can be created for a user or a team. The publication
type gets you basic information about the publication.
In this guide, you'll learn how to integrate the following GraphQL query into your applications using popular programming languages and frameworks:
query Publication {
publication(host: "blog.developerdao.com") {
id
isTeam
title
about {
markdown
}
}
}
Run it on our API playground to see how it works.
const query = `
query {
publication(host: "blog.developerdao.com") {
id
isTeam
title
about {
markdown
}
}
}
`;
fetch('https://gql.hashnode.com', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ query })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));