How to make any document property immutable

java
n1ql
query

#1

When creating document i am adding a property called “createdOn” and saving it to the couchbase server this field hold the current date time, wanted to know how i can make this property immutable (update call should not change the “createdOn”, even if user change then should get error message), is there a way using meta Info by which i can do it ? instead of creating this field inside document, create as meta Info ?


#2

At the moment, there is no direct feature for this. The only immuable field is the document key/id.