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 → Read

AI-generated

Summary

Retrieves a single document by its ID from a specified Couchbase bucket, scope, and collection.

Inputs

  • Couchbase Bucket (required) — The Couchbase bucket containing the document.
  • Couchbase Scope (required) — The Couchbase scope containing the document.
  • Couchbase Collection (required) — The Couchbase collection containing the document.
  • Document ID (required) — The unique ID of the document to retrieve.

Output shape

One item per input item containing the document ID and its JSON value.

Returns the document value as a JSON string in the value field. If the document does not exist, the operation will fail.

Examples

Example 1: Read a user profile from a specific collection.

Select Bucket: 'users', Scope: 'default', Collection: 'profiles', Document ID: 'user-123'

Links

Discussion