I am trying to add a new piece of information to an existing document and I am not sure how to do so, I am not understanding the documentation for it.
Example:
SELECT META(bucketname) As Meta FROM bucketname WHERE Meta().id = “’.$key.’”’)
I pull a document and it shows the meta data:
ID:
FLAGS:
CAS:
etc…
I want to add to this list of meta data with my own field and put, for example, EXP DATE: some value
Im trying to use mutatein and upsert but im not figuring out the path it desires.
Can someone show me a good example of how i could do this and have access to values in couchbase on application side ?