I'm trying to add new key value pair to an existing object but with no success. the object looks like:
"weight": {
"options": {
},
"value": 50
}
my code is as following:
local optionId = 'a161713a-1987-4974-acfc-dd0a56ad99e7';
local weight = 20;
redis.call('JSON.SET', schemaKey, weightPath .. '.'..optionId, weight,'NX');
and i got error
wrong static path