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

[SEMVER-MAJOR] DAO.create: don't return the instance #918

Merged
merged 1 commit into from
May 2, 2016

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Apr 29, 2016

Simplify DataAccessObject.create() and stop returning the instance/array of instances. Users should always use callback (or returned promise) to get the instance(s) created.

See the discussion in #418 around strongloop/loopback#418 (comment) for more details.

/to @Amir-61 @partap please review

Simplify DataAccessObject.create() and stop returning the
instance/array of instances. Users should always use callback (or
returned promise) to get the instance(s) created.
@bajtos bajtos force-pushed the fix/remove-chaining-in-create branch from a1d852d to 8ad53a4 Compare April 29, 2016 12:16
@Amir-61
Copy link
Contributor

Amir-61 commented Apr 29, 2016

LGTM :shipit: Thanks!

@Amir-61 Amir-61 assigned bajtos and unassigned Amir-61 Apr 29, 2016
@bajtos bajtos merged commit 2189b9a into master May 2, 2016
@bajtos bajtos deleted the fix/remove-chaining-in-create branch May 2, 2016 11:09
@bajtos bajtos removed the #review label May 2, 2016
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

Successfully merging this pull request may close these issues.

2 participants