JS/TS SDK Reference
async listIndexes(): Promise<string[]>
Promise<string[]>
Error
Service Errors
import { Client } from 'cyborgdb'; const client = new Client('http://localhost:8000', 'your-api-key'); try { const indexes = await client.listIndexes(); console.log('Available indexes:', indexes); // Output: ['my_vector_index', 'semantic_search', 'document_embeddings'] } catch (error) { console.error('Failed to list indexes:', error.message); }
Was this page helpful?