Skip to content

Docs needs to update for UPDATE data using $save()  #265

@dhmlau

Description

@dhmlau

Bug or feature request

  • [ x] Bug
  • Feature request

Description of feature (or steps to reproduce if bug)

In the documentation (http://loopback.io/doc/en/lb3/AngularJS-JavaScript-SDK.html), it suggests to use $save() for update. However, it doesn't work for me, and it was also captured in this issue #154.

Link to sample repo to reproduce issue (if bug)

Expected result

Following the documentation, the data should be updated.

Actual result (if bug)

I got some error in odbc.js (using db2 connector) using $save() suggested by the documentation
Using the example in here #154,
something like below works for me:
MiscTodo.prototype$updateAttributes({ id: note.id }, note);

Additional information (Node.js version, LoopBack version, etc)

LoopBack 3.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions