Hi everyone, Although I read the Couchbase documentation, it was unclear to me. I want to update specific field’s values in Couchbase. I can’t figure out how to do this because the structure is a little it complex.
update shops set v.interval = {
"open": case when v.interval.open = 9 and v.interval.closed = 15 then 12
when v.interval.open = 8 and v.interval.closed = 18 then 10
end,
"closed": case when v.interval.open = 9 and v.interval.closed = 15 then 20
when v.interval.open = 8 and v.interval.closed = 18 then 16
end
}
for v in `1`.workingHours when (v.interval.open = 9 and v.interval.closed = 15) or (v.interval.open = 8 and v.interval.closed = 18) end;