Update by primary key should return either the updated document or the "_version" value

Hello,

It would be nice to return either the updated document or the “_version” value when a row is updated. An additional query has to be made just to get the “_version” value of the updated document.

Kind Regards.

Hi,
This can be done with the RETURNING clause which was added to the INSERT and UPDATE commands in CrateDB 4.2

1 Like