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

part 3d validation on update #615

Open
Data5tream opened this issue Dec 16, 2019 · 1 comment
Open

part 3d validation on update #615

Data5tream opened this issue Dec 16, 2019 · 1 comment

Comments

@Data5tream
Copy link

Mongoose doesn't run validation on default when updating objects and needs to be run with the runValidators: true option. This should be mentioned in exercise 3.19.

@Kaltsoon
Copy link
Collaborator

Yes, that's a good point. Perhaps we should mention it when introducing the findByIdAndUpdate method in part 3c

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