Skip to content
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

Update with adding new key #25

Open
pobutaalex opened this issue May 21, 2020 · 1 comment
Open

Update with adding new key #25

pobutaalex opened this issue May 21, 2020 · 1 comment

Comments

@pobutaalex
Copy link

pobutaalex commented May 21, 2020

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"
}
}
]

@donjajo
Copy link
Owner

donjajo commented May 24, 2020 via email

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

2 participants