Ditto · Schema

QueryResponse

Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.

Developer ToolsDatabaseSynchronizationPeer-to-PeerEdge ComputingOffline-FirstMobile

Properties

Name Type Description
error object
items array
mutatedDocumentIds array
queryType string Indicates the type of query that was executed
totalWarningsCount integer Total number of warnings generated during query execution
transactionId integer
warnings array
View JSON Schema on GitHub

JSON Schema

ditto-live-queryresponse-schema.json Raw ↑
{
  "type": "object",
  "description": "Response from executing a DQL statement. Contains query results, affected document IDs, and any warnings or errors that occurred.",
  "required": [
    "queryType",
    "items",
    "mutatedDocumentIds",
    "warnings",
    "totalWarningsCount"
  ],
  "properties": {
    "error": {
      "$ref": "#/components/schemas/QueryResponseError"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AnyValue"
      }
    },
    "mutatedDocumentIds": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AnyValue"
      }
    },
    "queryType": {
      "type": "string",
      "description": "Indicates the type of query that was executed"
    },
    "totalWarningsCount": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of warnings generated during query execution"
    },
    "transactionId": {
      "type": "integer",
      "format": "int64"
    },
    "warnings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/QueryResponseWarning"
      }
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "QueryResponse"
}