Skip to main content

getRecord

client.knowledgeGraph.getRecord(id: string, recordId: string): Promise<KGRecord>

Retrieves a specific record from a knowledge graph instance.

Returns the full record including all its properties and type information.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the graph instance
recordIdstringYesThe unique identifier of the record within the instance

Returns​

Promise<KGRecord> — A promise that resolves to the

Example​

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

const client = new CodeBoltClient();

const result = await client.knowledgeGraph.getRecord('id', 'recordId');
console.log(result);