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

Model 'save' cannot be used like the doc says #6

Open
ooXavier opened this issue Apr 19, 2015 · 0 comments
Open

Model 'save' cannot be used like the doc says #6

ooXavier opened this issue Apr 19, 2015 · 0 comments

Comments

@ooXavier
Copy link

var user = new User('John', 'john@test.com');
user.save((err) => {
    // callback
});

This code (from the doc) does not work.
Should be written :

User.save(user, (err) => {
    // callback
});

Could you add, the orginal way in Waterline and maybe upgrade to 0.10.x as it's a little bit different from 0.9.x

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

1 participant