Apache CouchDB · JSON Structure

Apache Couchdb Change Row Structure

A single change record in the changes feed

Type: object Properties: 5
ApacheDatabaseDocument StoreJSONNoSQLOpen SourceReplicationREST

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

Properties

seq id changes deleted 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-change-row-structure.json",
  "name": "ChangeRow",
  "description": "A single change record in the changes feed",
  "type": "object",
  "properties": {
    "seq": {
      "type": "string",
      "description": "Update sequence number",
      "example": "5000-abc123"
    },
    "id": {
      "type": "string",
      "description": "Document ID that was changed",
      "example": "doc001"
    },
    "changes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rev": {
            "type": "string",
            "example": "2-def456"
          }
        }
      }
    },
    "deleted": {
      "type": "boolean",
      "description": "True if this change is a deletion",
      "example": false
    },
    "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
        }
      }
    }
  }
}