Queries
knowledgeSource
Fetch a single knowledge source by its ID. Returns null if no knowledge source with the given ID exists.
QUERY
knowledgeSource(knowledgeSourceId: ID!): KnowledgeSourceArguments
knowledgeSourceId
ID!
required
Returns
Query
query KnowledgeSource($knowledgeSourceId: ID!) {
knowledgeSource(knowledgeSourceId: $knowledgeSourceId) {
__typename
... on KnowledgeSourceSitemap {
id
type
url
labelTypes {
id
name
icon
color
type
description
}
status {
__typename
... on IndexingStatusPending {
__typename
}
}
indexedDocumentCounts {
total
pending
indexed
failed
}
}
}
}Variables
{
"knowledgeSourceId": "id"
}Response
{
"data": {
"knowledgeSource": {
"__typename": "KnowledgeSourceSitemap",
"id": "id",
"type": "SITEMAP",
"url": "string",
"labelTypes": [
{
"id": "id",
"name": "string",
"icon": "string",
"color": "string",
"type": "DEFAULT",
"description": "string"
}
],
"status": {
"__typename": "IndexingStatusPending"
},
"indexedDocumentCounts": {
"total": 1,
"pending": 1,
"indexed": 1,
"failed": 1
}
}
}
}Was this page helpful?
⌘I
Query
query KnowledgeSource($knowledgeSourceId: ID!) {
knowledgeSource(knowledgeSourceId: $knowledgeSourceId) {
__typename
... on KnowledgeSourceSitemap {
id
type
url
labelTypes {
id
name
icon
color
type
description
}
status {
__typename
... on IndexingStatusPending {
__typename
}
}
indexedDocumentCounts {
total
pending
indexed
failed
}
}
}
}Variables
{
"knowledgeSourceId": "id"
}Response
{
"data": {
"knowledgeSource": {
"__typename": "KnowledgeSourceSitemap",
"id": "id",
"type": "SITEMAP",
"url": "string",
"labelTypes": [
{
"id": "id",
"name": "string",
"icon": "string",
"color": "string",
"type": "DEFAULT",
"description": "string"
}
],
"status": {
"__typename": "IndexingStatusPending"
},
"indexedDocumentCounts": {
"total": 1,
"pending": 1,
"indexed": 1,
"failed": 1
}
}
}
}
