We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When making changed to the instance in the pre save hook the changes are not saved to the db. example (pseudo code):
class Dog extends Document { constructor() { super(); this.name = String; } preSave() { this.name = this.name + "_dog"; } }; var dog = Dog.create({name: 'fido'}); dog.save(); Dog.find({}) .then( function(obj) { console.log(obj.name); });
output: "fido"
but it should be "fido_dog"
Or was this done on purpose?
The text was updated successfully, but these errors were encountered:
This one it's duplicated with #43. See that for workarounds.
Sorry, something went wrong.
Fixed in beb5681
No branches or pull requests
When making changed to the instance in the pre save hook the changes are not saved to the db.
example (pseudo code):
output:
"fido"
but it should be "fido_dog"
Or was this done on purpose?
The text was updated successfully, but these errors were encountered: