I am wondering if there is a way to get a counter value and increment it in the same query ? Lets say i want to
get my next_bach from doc like
select next_batch from default where _type ='cname_info'
then t=right now i do afterwards a
update default set next_batch = next_batch + 1 where _type ='cname_info'
can this be done ?