0

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

Mohammed Ehab
  • 207
  • 1
  • 5
  • 14

1 Answers1

0

While this might be late, I suspect there is a recursive descent in your path, that is some double dots like in $..weight.options.aa and that is currently not supported by redis SET. The subject is discussed here.