Apache CouchDB · JSON Structure

Apache Couchdb Doc Row Structure

A row in an _all_docs response

Type: object Properties: 4
ApacheDatabaseDocument StoreJSONNoSQLOpen SourceReplicationREST

DocRow is a JSON Structure definition published by Apache CouchDB, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id key value doc

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-couchdb/refs/heads/main/json-structure/apache-couchdb-doc-row-structure.json",
  "name": "DocRow",
  "description": "A row in an _all_docs response",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Document ID",
      "example": "doc001"
    },
    "key": {
      "type": "string",
      "description": "Row key",
      "example": "doc001"
    },
    "value": {
      "type": "object",
      "description": "Row value containing revision info",
      "properties": {
        "rev": {
          "type": "string",
          "example": "1-abc123"
        }
      }
    },
    "doc": {
      "name": "Document",
      "type": "object",
      "description": "A CouchDB document with system fields and user-defined fields",
      "properties": {
        "_id": {
          "type": "string",
          "description": "Document ID",
          "example": "doc001"
        },
        "_rev": {
          "type": "string",
          "description": "Current revision ID (major-hash format)",
          "example": "1-abc123def456"
        },
        "_deleted": {
          "type": "boolean",
          "description": "Present and true for deleted (tombstone) documents",
          "example": false
        }
      }
    }
  }
}