apoc.couchbase.upsert
Procedure Apoc Extended
apoc.couchbase.upsert(hostOrKey, bucket, documentId, jsonDocument) yield id, expiry, cas, mutationToken, content - insert or overwrite a couchbase json document with its unique ID.
Signature
apoc.couchbase.upsert(hostOrKey :: STRING?, bucket :: STRING?, documentId :: STRING?, json :: STRING?, config = {} :: MAP?) :: (content :: MAP?, id :: STRING?, expiry :: INTEGER?, cas :: INTEGER?, mutationToken :: MAP?)
Input parameters
Name | Type | Default |
---|---|---|
hostOrKey |
STRING? |
null |
bucket |
STRING? |
null |
documentId |
STRING? |
null |
json |
STRING? |
null |
config |
MAP? |
{} |