Ditto · Schema

Document

Represents a document in the Ditto store. Documents are schema-free and can contain nested fields of various CRDT types for conflict-free replication.

Developer ToolsDatabaseSynchronizationPeer-to-PeerEdge ComputingOffline-FirstMobile

Properties

Name Type Description
fields object The document's content, which can include any valid JSON data types and special Ditto CRDT types
id object The unique identifier for this document within its collection
View JSON Schema on GitHub

JSON Schema

ditto-live-document-schema.json Raw ↑
{
  "type": "object",
  "description": "Represents a document in the Ditto store. Documents are schema-free and can contain nested fields of various CRDT types for conflict-free replication.",
  "required": [
    "id",
    "fields"
  ],
  "properties": {
    "fields": {
      "$ref": "#/components/schemas/AnyValue",
      "description": "The document's content, which can include any valid JSON data types and special Ditto CRDT types"
    },
    "id": {
      "$ref": "#/components/schemas/AnyValue",
      "description": "The unique identifier for this document within its collection"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Document"
}