Update document


#1

have any way to update part of document in couchbase with PHP?

{
_id: 199
"STATUS": 1,
“FLAG”: 2,
“LOCK”: 1
}

Need update only (suposed) “field” LOCK .

Something like:

$cb->update(199,"LOCK",2); ?

Or really need read all document, make changes and save again?


#2

Hi,

Yes, currently you have to replace the whole document.