Use the fetch KB Guides information to fetch the chapter IDs and identify the chapter ID for which you want information.
For example, to fetch information about a chapter (ID:153) with content, use the chapter
query.
GraphQL query:
query {
chapter(id: "chapter:153") {
id
title
description
guide{
id
title
description
hidden
node{
id
creationDate
}
totalArticlesCount
}
articles {
edges {
node {
uid,
id,
subject,
viewHref,
board {
id
}
}
}
}
}
}
GraphQL query response:
{
"data": {
"chapter": {
"id": "chapter:153",
"title": "Qualities of Artificial Intelligence",
"description": "Machine that responds to simulation.",
"guide": {
"id": "guide:601",
"title": "Opinion of Different Companies",
"description": "This guide is about different companies",
"hidden": false,
"node": {
"id": "board:tr-books",
"creationDate": "2024-07-22T01:27:00.530-07:00"
},
"totalArticlesCount": 4
},
"articles": {
"edges": [
{
"node": {
"uid": 11807,
"id": "message:11807",
"subject": "title onere edited",
"viewHref": "https://[COMMUNITY DOMAIN]/discussions/tkb_avengers/title-onere-edited/11807",
"board": {
"id": "board:tkb_avengers"
}
}
},
{
"node": {
"uid": 11905,
"id": "message:11905",
"subject": "New reply post",
"viewHref": "https://[COMMUNITY DOMAIN]/discussions/testingtkb/new-reply-post/11905",
"board": {
"id": "board:AIBoard"
}
}
}
]
}
}
}
}
ATLAS
Comments