Upwork · JSON Structure

Graphql Graph Ql Response Structure

A GraphQL response containing data or errors

Type: object Properties: 2
FreelancingJobsTalentMarketplaceContractsHiring

GraphQLResponse is a JSON Structure definition published by Upwork, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

data errors

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/upwork/refs/heads/main/json-structure/graphql-graph-ql-response-structure.json",
  "name": "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"
      }
    }
  }
}