Is it possible to have an MutationType which will increment an number and also return the new value ? Any layer implementation which relies on a primary key feature will need this feature.
Current op that just Adds a value is not usable as a primary key generator as there is no reliable way to get the value which was just incremented. I understand that this operation will not be in scope of the existing transaction boundary as the incremented value cant be rolled back. But I think this is an acceptable scenario.
I read the High-Contention-Allocator algorithm but I dont think it fits the usecase.