Update
Use the create endpoint to update a specific key content from an existing Aggregate
.
Since creating an Aggregate
message mutates the value of the specific key, if the key exists, the value object will be updated (mutated) with the object you are saving.
Usage
Post an aggregate
The message result is here
"content": { "a": 1, "my_array": [ "ETH", "AVAX" ] }
Update the aggregate
With the same account, send another aggregate message that refers to the same key:
The message result is here
"content": { "a": 1895 }
Checking the result
When fetching the result you can see that the
a
key was correctly updated{ test_key: { a: 1895, my_array: [ 'ETH', 'AVAX' ] } }
Last updated