get_document_by_id
Retrieve a specific document by its ID from a designated scope and collection in a Couchbase cluster. Raises an exception if the document is not found.
Instructions
Get a document by its ID from the specified scope and collection. If the document is not found, it will raise an exception.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection_name | Yes | ||
document_id | Yes | ||
scope_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"collection_name": {
"title": "Collection Name",
"type": "string"
},
"document_id": {
"title": "Document Id",
"type": "string"
},
"scope_name": {
"title": "Scope Name",
"type": "string"
}
},
"required": [
"scope_name",
"collection_name",
"document_id"
],
"title": "get_document_by_idArguments",
"type": "object"
}