-
Notifications
You must be signed in to change notification settings - Fork 3
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
Complex objects as attrs don't get marked dirty #9
Comments
For arrays probably the best solution is:
This is how mongoose does it https:/LearnBoost/mongoose/blob/3.8.x/lib/types/array.js#L27 For nested properties I suppose that when there is a defined set of sub properties in the schema like:
(Or another syntax given that the second argument can be used for passing options.) And then transform each sub property using a getter and a setter, for objects without a defined set of sub property I think that the only thing that you can do is using a method like |
when setting nested properties or mutating arrays
The text was updated successfully, but these errors were encountered: