aerospike-client-python icon indicating copy to clipboard operation
aerospike-client-python copied to clipboard

Help wanted! Update in nested data

Open MockingMagician opened this issue 3 years ago • 0 comments

Hello to everyone,

I need help, let's say we have a bin with this structure:

{
  loc' : {
    EU' : {'FR' : {'Paris', 'Lyon'}}, 
    US': { 'CA': { 'Miami'}}
}, 

Is it possible to update loc.EU and add for example ES: {'Madrid'}}

So we would finally get this bin structure:

{
  loc' : {
    EU' : {'FR' : {'Paris', 'Lyon'}, ES : {'Madrid'}}, 
    US' : {'CA' : {'Miami'}}
}, 

If it is possible to do this, can someone provide a complete example?

Thanks in advance

MockingMagician avatar Oct 05 '22 08:10 MockingMagician