Ditto · Schema

WriteRequest

Request to execute one or more write commands in a transaction

Developer ToolsDatabaseSynchronizationPeer-to-PeerEdge ComputingOffline-FirstMobile

Properties

Name Type Description
commands array Array of write commands to execute in the transaction
View JSON Schema on GitHub

JSON Schema

ditto-live-writerequest-schema.json Raw ↑
{
  "type": "object",
  "description": "Request to execute one or more write commands in a transaction",
  "required": [
    "commands"
  ],
  "properties": {
    "commands": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WriteCommand"
      },
      "description": "Array of write commands to execute in the transaction"
    }
  },
  "example": {
    "commands": [
      {
        "method": "upsert",
        "collection": "people",
        "id": 1,
        "value": {
          "name": "Susan",
          "age": 31,
          "favoriteBook": {
            "published": 1925,
            "title": "The Great Gatsby"
          }
        }
      }
    ]
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "WriteRequest"
}