Wayfair · JSON Structure

Wayfair Graph Ql Error Structure

GraphQLError schema from Wayfair Supplier API

Type: object Properties: 3
E-CommerceFurnitureHome GoodsRetailSuppliersGraphQL

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

Properties

message locations path

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/wayfair/refs/heads/main/json-structure/wayfair-graph-ql-error-structure.json",
  "name": "GraphQLError",
  "description": "GraphQLError schema from Wayfair Supplier API",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Error message.",
      "example": "Field 'unknownField' doesn't exist on type 'PurchaseOrder'"
    },
    "locations": {
      "type": "array",
      "description": "Source locations in the query where the error occurred.",
      "items": {
        "type": "object",
        "properties": {
          "line": {
            "type": "int32",
            "example": 3
          },
          "column": {
            "type": "int32",
            "example": 5
          }
        }
      }
    },
    "path": {
      "type": "array",
      "description": "Path in the response data where the error occurred.",
      "items": {
        "type": "string"
      }
    }
  }
}