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 I use the update() is there a way to target nested objects?
update()
For example, here is my line item object:
{ id: 4133 nonprofit: { name: "Product 1", message: "message for someone", } price: 10 quantity: 1 }
I wanted to use the update() to change the message within the nonprofit object.
message
nonprofit
Right now the update() only takes "field" key but how can I access that field within the nested object?
I tried doing this but it just add it as a key within the object update(4133, 'nonprofit.message', 10)
update(4133, 'nonprofit.message', 10)
Thanks!
The text was updated successfully, but these errors were encountered:
Unfortunately right now deep updates are not possible. Thanks for the suggestion though, I will implement this.
Sorry, something went wrong.
No branches or pull requests
When I use the
update()
is there a way to target nested objects?For example, here is my line item object:
I wanted to use the
update()
to change themessage
within thenonprofit
object.Right now the
update()
only takes "field" key but how can I access that field within the nested object?I tried doing this but it just add it as a key within the object
update(4133, 'nonprofit.message', 10)
Thanks!
The text was updated successfully, but these errors were encountered: