prepend

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

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

DocumentNotFoundException

if the document is not found in the collection.

CasMismatchException

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