Skip to main content

listViews

client.knowledgeGraph.listViews(params?: Record<string, unknown>): Promise<KGView[]>

Lists all knowledge graph views.

Returns every view with their query definitions and associated graph instances.

Parameters

ParameterTypeRequiredDescription
paramsRecord<string, unknown>NoOptional query parameters for filtering or pagination

Returns

Promise<KGView[]> — A promise that resolves to an array of objects

Example

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

const client = new CodeBoltClient();

const result = await client.knowledgeGraph.listViews();
console.log(result);