Couchbase icon

Couchbase

Couchbase node to insert, update, retrieve, and delete data from a Couchbase database using KV, Query and Search services

Actions7

Document & Key-Value → Upsert

AI-generated

Summary

Upsert a JSON document in a Couchbase collection by its document ID, creating the document if it does not exist or replacing its value if it does.

Inputs

  • Couchbase Bucket (required) — Choose a bucket from the list or enter its name.
  • Couchbase Scope (required) — Choose a scope in the selected bucket or enter its name.
  • Couchbase Collection (required) — Choose a collection in the selected scope or enter its name.
  • Document ID (required) — ID of the document to upsert.
  • Document Value — Document content in JSON format. The node passes this value to Couchbase as the document value.

Output shape

A single item containing the upserted document's ID and value.

The output fields are id and value; the value is the submitted document content. The Document Value field is not marked required in the UI.

Links

Discussion