Closed ulsamern closed 7 years ago
Have we got a solution?
@aquid has either already merged a PR or is very close to it. He is in the caught up middle of some philosophical discussions about what save
should or should not do according to the folks at loopback. https://github.com/strongloop/loopback-datasource-juggler/issues/1233
You can expect a release by end of this week.
@ketansp Pull request is already merged and you will have this issue resolved once the latest version is released. As far as the save
method's expected behavior discussion goes, I will update the save
method functionality based on the final conclusion from the discussion. But as of now, es connector save method supports partial update.
cc @pulkitsinghal
released in v1.3.2
Seems as if the refactoring that was done in https://github.com/strongloop-community/loopback-connector-elastic-search/commit/25e902936a749b9eb482d28b9df31259c3a9d761#diff-a27d2580e4157c6999e9327a4a358c21L446 was not applied to ESConnector.prototype.save (marked the line in the link above).
When I try to save an existing model the esConnector.js throws the following error:
I will refactor and create a PR for it