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
I'm looking that update command return exception "not found" with unchanged record. It is ambiguous or normal ?
"js-data": "^3.0.0-rc.6", "js-data-rethinkdb": "^3.0.0-rc.2",
_update: function _update(mapper, id, props, opts) { var _this5 = this; props || (props = {}); opts || (opts = {}); var updateOpts = this.getOpt('updateOpts', opts); updateOpts.returnChanges = true; return this.selectTable(mapper, opts).get(id).update(props, updateOpts).run(this.getOpt('runOpts', opts)).then(function (cursor) { var record = void 0; _this5._handleErrors(cursor); if (cursor && cursor.changes && cursor.changes.length && cursor.changes[0].new_val) { record = cursor.changes.length ? cursor.changes[0].new_val : Object.assign(props,{id:id}); } else { throw new Error('Not Found'); } return [record, cursor]; }); }
The text was updated successfully, but these errors were encountered:
Prepare for 3.0.0-rc.3
eb6e315
Fixed in 3.0.0-rc.3
Sorry, something went wrong.
jmdobry
No branches or pull requests
I'm looking that update command return exception "not found" with unchanged record.
It is ambiguous or normal ?
"js-data": "^3.0.0-rc.6",
"js-data-rethinkdb": "^3.0.0-rc.2",
The text was updated successfully, but these errors were encountered: