UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

16 lines 702 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.execute = execute; const helpers_1 = require("../helpers"); async function execute(i) { const credentialType = (0, helpers_1.getActiveCredentialType)(this, i); const host = await (0, helpers_1.getHost)(this, credentialType); const indexName = this.getNodeParameter('indexName', i); const response = await this.helpers.httpRequestWithAuthentication.call(this, credentialType, { method: 'GET', url: `${host}/api/2.0/vector-search/indexes/${indexName}`, json: true, }); return [{ json: response, pairedItem: { item: i } }]; } //# sourceMappingURL=getIndex.operation.js.map