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
Hello gays, Is there a way to do an in-place data update?
For exemple, I have de following rule:
{ "if": [ { "some": [{ "var": "groups" }, { "==": [{ "var": "name" }, "group_1"] }] }, { "merge": [{ "var": "" }, [{ "id": 2, "name": "group_2" }]] } ] }
using the following data:
{ "id": 1, "name": "test", "groups": [{ "id": 1, "name": "group_1" }], "tags": [{ "id": 1, "name": "tag_1" }], "category": { "id": 1, "name": "category_1", "fields": [ { "id": 1, "name": "field_1", "kind": "str", "value": "hello word" } ] } }
then I want, as result, the following:
{ "id": 1, "name": "test", "groups": [ { "id": 1, "name": "group_1" }, { "id": 2, "name": "group_2" } ], "tags": [{ "id": 1, "name": "tag_1" }], "category": { "id": 1, "name": "category_1", "fields": [ { "id": 1, "name": "field_1", "kind": "str", "value": "hello word" } ] } }
As my rule, the field groups in the data was updated to:
groups
[ { "id": 1, "name": "group_1" }, { "id": 2, "name": "group_2" } ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello gays,
Is there a way to do an in-place data update?
For exemple, I have de following rule:
using the following data:
then I want, as result, the following:
As my rule, the field
groups
in the data was updated to:The text was updated successfully, but these errors were encountered: