Determine if Put was create or update
subprotocol opened this issue · 2 comments
subprotocol commented
Currently getExistingVersion() is always empty unless you:
- Specify setReturnRow(true)
- Specify one of these options: IfAbsent, IfPresent, IfVersion.
- The condition fails
My issue is that I need the put operation to succeed and return getExistingVersion() for the previous version—if one exists—without specifying a conditional Option.
Using the older NoSQL api this was possible by setting ReturnRow.Choice.VERSION.
gmfeinberg commented
We will look at enhancing the semantics of the existing calls to support this. There is an internal ticket for this
subprotocol commented
Thank you!