feat(Elasticsearch Node): Add 'Source Excludes' and 'Source Includes' options on 'Document: getAll' operation (#3660)

* Added 'Source Excludes' and 'Source Includes' options on  'document: getAll' operation

* Updated credentials to use new system

Co-authored-by: mp <miguel@mconf.com>
Co-authored-by: miguel-mconf <107938570+miguel-mconf@users.noreply.github.com>
Co-authored-by: Jan Oberhauser <janober@users.noreply.github.com>
This commit is contained in:
Jonathan Bennetts
2022-07-10 11:11:12 +01:00
committed by GitHub
parent eae9a60a43
commit 8999403228
3 changed files with 19 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import {
import {
IDataObject,
JsonObject,
NodeApiError,
} from 'n8n-workflow';
@@ -47,6 +48,6 @@ export async function elasticsearchApiRequest(
try {
return await this.helpers.requestWithAuthentication.call(this, 'elasticsearchApi', options);
} catch (error) {
throw new NodeApiError(this.getNode(), error);
throw new NodeApiError(this.getNode(), error as JsonObject);
}
}