prepend
suspend fun prepend(id: String, content: ByteArray, common: CommonOptions = CommonOptions.Default, durability: Durability = Durability.none(), cas: Long = 0): MutationResult
Content copied to clipboard
Prepends binary content to a document.
Parameters
id
the ID of the document to modify.
content
the binary content to prepend to the document.
Throws
com. couchbase. client. core. error. Document Not Found Exception
if the document is not found in the collection.
com. couchbase. client. core. error. Cas Mismatch Exception
if a non-zero CAS is specified and the document has been concurrently modified on the server.