{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/QueryResult",
  "title": "QueryResult",
  "type": "object",
  "description": "Result from a SOQL query execution",
  "properties": {
    "totalSize": {
      "type": "integer",
      "description": "Total number of records matching the query"
    },
    "done": {
      "type": "boolean",
      "description": "Whether all results have been returned"
    },
    "nextRecordsUrl": {
      "type": "string",
      "description": "URL to retrieve the next batch of results (if done is false)"
    },
    "records": {
      "type": "array",
      "description": "Array of matching records",
      "items": {
        "$ref": "#/components/schemas/SObjectRecord"
      }
    }
  }
}