Bug #84547 | Error when mysqlx tries to parse json object while modifying data (Nodejs) | ||
---|---|---|---|
Submitted: | 18 Jan 2017 7:11 | Modified: | 6 Jun 2022 17:17 |
Reporter: | Tanvi Shah | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | Connector for Node.js | Severity: | S2 (Serious) |
Version: | Connector-Nodejs version - 1.0.5 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | document-store, mysql/xdevapi, NodeJS |
[18 Jan 2017 7:11]
Tanvi Shah
[27 Jan 2017 10:59]
Chiranjeevi Battula
Hello Tanvi Shah, Thank you for the bug report. Verified based on internal discussion with dev's. Thanks, Chiranjeevi.
[6 Jun 2022 17:17]
Rui Quelhas
This is more like a feature request. In any case, as of revision #84f250c, it is possible to do what is suggested using the "patch()" method. The "set()" method continues to operate on individual document properties only, being fluent nonetheless (as established by the DevAPI standard). The following examples will result in the same outcome: var obj = {name:"Name", description:"Description"}; coll.modify("$._id == '100'").patch(obj).execute(); // or coll.modify("$._id == '100'").set("name", "Name").set("description", "Description").execute(); Thanks for the bug report