Skip to content

Merge Only In Deep-Nested Objects #160

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

Open
cadencelabs-master opened this issue Mar 26, 2015 · 0 comments
Open

Merge Only In Deep-Nested Objects #160

cadencelabs-master opened this issue Mar 26, 2015 · 0 comments

Comments

@cadencelabs-master
Copy link

Let's say I've got an object with the below structure (in toJSON):
order: {
item: {
product: {
name: "foo"
}
}
}

Sometimes I may want to return response data from the server to update the name of the product BUT NOT to completely reinitialize it. As it stands currently, if I send back any information for "item" it is completely reset as if it were a new model. Is there some way to specify that I want nested information to be "merged" as opposed to completely overwritten?

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