apoc.couchbase.prepend

Procedure Apoc Extended

apoc.couchbase.prepend(hostOrKey, bucket, documentId, content, config) yield id, expiry, cas, mutationToken, content - prepend a couchbase json document to an existing one.

Signature

apoc.couchbase.prepend(hostOrKey :: STRING?, bucket :: STRING?, documentId :: STRING?, content :: BYTEARRAY?, config = {} :: MAP?) :: (content :: BYTEARRAY?, id :: STRING?, expiry :: INTEGER?, cas :: INTEGER?, mutationToken :: MAP?)

Input parameters

Name Type Default

hostOrKey

STRING?

null

bucket

STRING?

null

documentId

STRING?

null

content

BYTEARRAY?

null

config

MAP?

{}

Output parameters

Name Type

content

BYTEARRAY?

id

STRING?

expiry

INTEGER?

cas

INTEGER?

mutationToken

MAP?