Upwork · Schema

GraphQLResponse

A GraphQL response containing data or errors

FreelancingJobsTalentMarketplaceContractsHiring

Properties

Name Type Description
data object The response data for the operation
errors array List of GraphQL errors if the operation failed
View JSON Schema on GitHub

JSON Schema

graphql-graph-ql-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/upwork/refs/heads/main/json-schema/graphql-graph-ql-response-schema.json",
  "title": "GraphQLResponse",
  "description": "A GraphQL response containing data or errors",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "The response data for the operation",
      "additionalProperties": true
    },
    "errors": {
      "type": "array",
      "description": "List of GraphQL errors if the operation failed",
      "items": {
        "$ref": "#/components/schemas/GraphQLError"
      }
    }
  }
}