Skip to content

Update with adding new key #25

@pobutaalex

Description

@pobutaalex

When you try to update the array if you want to add new key to it it trows exception 'Update method has an off key', is there a way to add function to be able to add new keys with update method?

Example i have array stored like this
[
{
"key": "javascript",
"ru": {
"value": "ru_RU"
},
"bg": {
"value": "bg_BG"
},
"cs": {
"value": "cs_CZ",
},
"de": {
"value": "de_DE"
}
}
]

now i want to update it to add new lang to be so

[
{
"key": "javascript",
"ru": {
"value": "ru_RU"
},
"bg": {
"value": "bg_BG"
},
"cs": {
"value": "cs_CZ"
},
"de": {
"value": "de_DE"
},
"fr": {
"value": "fr_FR"
}
}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions