-
Notifications
You must be signed in to change notification settings - Fork 40
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
consider adding 'default' value to attr #24
Comments
I guess that goes in the Though, personally I would add both natively. |
the nice thing about separating them is that you can easily craft your own "version" of model by forking, and adding those plugins as dependencies, removing any boilerplate you didn't want |
yes that makes alot of sense. I did investigate that method, but wasn't sure how to go about doing it. |
yup need the event first |
Made a plugin that does this for you: https://github.com/segmentio/model-defaults |
ie.
model('Bucket')
.attr('count', { default: 0 })
The text was updated successfully, but these errors were encountered: