Add _id to simplified version of document:get (#2000)

This commit is contained in:
Ricardo Espinoza 2021-07-17 18:32:08 -04:00 committed by GitHub
parent 3aec53e2cc
commit b531f31512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,10 @@ export class Elasticsearch implements INodeType {
const simple = this.getNodeParameter('simple', i) as IDataObject; const simple = this.getNodeParameter('simple', i) as IDataObject;
if (simple) { if (simple) {
responseData = responseData._source; responseData = {
_id: responseData._id,
...responseData._source,
};
} }
} else if (operation === 'getAll') { } else if (operation === 'getAll') {