degraphql Configuration
The degraphql plugin maps HTTP routes to predefined GraphQL queries and forwards selected request values as GraphQL variables. Configuration covers plugin parameters.
Parameters
See plugin common configurations for configuration options available to all plugins.
query
valid value:
between 1 and 1024 charactersGraphQL document sent to the upstream for every matching request.
operation_name
valid value:
between 1 and 1024 charactersGraphQL operation to execute. Required when
querycontains more than one operation.variables
Names of GraphQL variables to copy from the JSON request body for POST requests or URL query parameters for GET requests.
max_req_body_size
valid value:
greater than or equal to 1Maximum POST request body size in bytes read when extracting configured GraphQL
variables. A larger body returns503 Service Unavailable. The request body is not used whenvariablesis not configured. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and APISIX 3.18.0.