From b531f315129fd6c8a871873dee50f9fb632c093a Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Sat, 17 Jul 2021 18:32:08 -0400 Subject: [PATCH] :zap: Add _id to simplified version of document:get (#2000) --- .../nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts b/packages/nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts index e28ff8cb0b..6ef02e518d 100644 --- a/packages/nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts +++ b/packages/nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts @@ -133,7 +133,10 @@ export class Elasticsearch implements INodeType { const simple = this.getNodeParameter('simple', i) as IDataObject; if (simple) { - responseData = responseData._source; + responseData = { + _id: responseData._id, + ...responseData._source, + }; } } else if (operation === 'getAll') {