Skip to content
New issue

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

patchById and patchOrCreate #825

Closed
bajtos opened this issue Jan 20, 2016 · 0 comments
Closed

patchById and patchOrCreate #825

bajtos opened this issue Jan 20, 2016 · 0 comments
Assignees

Comments

@bajtos
Copy link
Member

bajtos commented Jan 20, 2016

Based on the discussion in #788, we should implement few new methods, both in 2.x and 3.0:

  • patchById - a static version of instance.updateAttributes that does not require any instance (Connect to: strongloop-internal/scrum-loopback#752)
  • patchOrCreate - an alias for updateOrCreate(Connect to: strongloop-internal/scrum-loopback#753)
  • instance.patchAttributes - an alias for instance.updateAttributes(Connect to: strongloop-internal/scrum-loopback#753)
  • Only in 3.0: rework HTTP endpoints to call patch/replaceById instead of sharedCtor + update/replaceAttributes

/cc @raymondfeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants