Optimizely · Schema

GraphQLRequest

A GraphQL query request

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
query string The GraphQL query string
variables object Variables for the GraphQL query
operationName string Name of the operation to execute if the query contains multiple operations
View JSON Schema on GitHub

JSON Schema

optimizely-graphqlrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GraphQLRequest",
  "title": "GraphQLRequest",
  "type": "object",
  "description": "A GraphQL query request",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "The GraphQL query string"
    },
    "variables": {
      "type": "object",
      "description": "Variables for the GraphQL query",
      "additionalProperties": true
    },
    "operationName": {
      "type": "string",
      "description": "Name of the operation to execute if the query contains multiple operations"
    }
  }
}