fauna · Schema

GraphQLRequest

Properties

Name Type Description
query string The GraphQL query or mutation string.
variables object Variables to pass to the GraphQL query or mutation.
operationName string The name of the operation to execute if the query document contains multiple operations.
View JSON Schema on GitHub

JSON Schema

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