append

suspend fun append(id: String, content: ByteArray, common: CommonOptions = CommonOptions.Default, durability: Durability = Durability.disabled(), cas: Long = 0): MutationResult

Appends binary content to a document.

Parameters

id

the ID of the document to modify.

content

the binary content to append to the document.

Throws

com.couchbase.client.core.error.DocumentNotFoundException

if the document is not found in the collection.

com.couchbase.client.core.error.CasMismatchException

if a non-zero CAS is specified and the document has been concurrently modified on the server.