Skip to main content

getInstance

client.knowledgeGraph.getInstance(id: string): Promise<KGInstance>

Retrieves a specific knowledge graph instance by its ID.

Returns the full details of a graph instance including its metadata, template reference, and statistics.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the graph instance

Returns

Promise<KGInstance> — A promise that resolves to the

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.knowledgeGraph.getInstance('id');
console.log(result);