We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproduce:
Create a model Test
Test
Create an instance for Test:
testInstance: { id: 1, name: 'test1' skills: [ {id: 0, text: "JAVA"}, {id: 1, text: "CSS"}, {id: 2, text: "HTML" }, {id: 3, text: "JAVASCRIPT"}, {id: 4, text: ".NET"} ] }
Try updateAll:
Test.updateAll({id: test.id}, {skills: [ { id: 1, text: "newJAVA"}, { id: 2, text: "newCSS"} ]}, function(err, count){} );
The updated skills are expected to be:
skills: [ { id: 1, text: "newJAVA"}, { id: 2, text: "newCSS"} ]
But actual result is:
skills: [ {id: 0, text: "newJAVA"}, {id: 1, text: "newCSS"}, {id: 2, text: "HTML" }, {id: 3, text: "JAVASCRIPT"}, {id: 4, text: ".NET"} ]
Details see: http://stackoverflow.com/questions/40111147/updateall-loopback-datasource-does-not-delete-deletions-inside-updated-data
The text was updated successfully, but these errors were encountered:
@jannyHou : Same issue as: #47 (comment)
Root cause: https://github.com/strongloop/loopback-connector-cloudant/blob/35580d0df5ce322f194e3c5b606e4230965ae021/lib/cloudant.js#L574
Sorry, something went wrong.
I think it's already fixed in #117, closing it. Feel free to reopen it if you still run into same error.
No branches or pull requests
Reproduce:
Create a model
Test
Create an instance for
Test
:Try updateAll:
The updated skills are expected to be:
But actual result is:
Details see: http://stackoverflow.com/questions/40111147/updateall-loopback-datasource-does-not-delete-deletions-inside-updated-data
The text was updated successfully, but these errors were encountered: