This is related to #8. Where the cas is returned on document create with the id.
Like written there, the documents should always be exactly the same (no matter if query or create). However would be good if the cas would always be returned in for example "_cas", "_metadata.cas" or whatever. On save the connector should then use the cas when present to see if it matches with the current one and only update when they match. If not it should error with "cas mismatch" so that the application can change the data again based on the now current-document.
This is very important because there is no locking and data will else be overwritten all the time.
This is related to #8. Where the cas is returned on document create with the id.
Like written there, the documents should always be exactly the same (no matter if query or create). However would be good if the cas would always be returned in for example "_cas", "_metadata.cas" or whatever. On save the connector should then use the cas when present to see if it matches with the current one and only update when they match. If not it should error with "cas mismatch" so that the application can change the data again based on the now current-document.
This is very important because there is no locking and data will else be overwritten all the time.