I understand that there is an atomic operations (counter) to increase a number in couchbase.
I have learned that creating a separate document just for a counter makes my n1ql quite tricky when I join documents.
it looks like number = number + 1 works just fine.
update mybucket set number = number + 1 where name = “something”
Is it okay to rely on this query to update a number? Is this atomic?