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
Lets say we have the following user:
bob = new MyModel({ name: { first: 'bob', middle: 'bill', last: 'smith' } })
if you do bob.set({name.first: "Bob"}) you'd get
bob.set({name.first: "Bob"})
{ name: { first: 'Bob', middle: 'bill', last: 'smith' } }
but if you try to do bob.save({'name.first': "Bob"}) you would get
bob.save({'name.first': "Bob"})
{ 'name.first': 'Bob', name: { first: 'bob', middle: 'bill', last: 'smith' } }
In order to avoid unintended consequences, there should be some mechanism to use save the same way you would use set.
save
set
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Lets say we have the following user:
if you do
bob.set({name.first: "Bob"})
you'd getbut if you try to do
bob.save({'name.first': "Bob"})
you would getIn order to avoid unintended consequences, there should be some mechanism to use
save
the same way you would useset
.The text was updated successfully, but these errors were encountered: