Expand description
Actix extraction and response conversion for application-owned GraphQL handlers.
JSON syntax errors receive 400, invalid request fields 422, unsupported
content types 415, and oversized bodies 413. Configure body limits through
web::JsonConfig. Custom JSON error handlers remain effective.
GraphQL syntax errors receive 400 and other request errors 422. All execution
results use 200, including partial data and root-null results with errors.
Responses negotiate Accept; missing headers preserve JSON and unsupported
preferences receive 406 before runtime execution. GraphiQL routes are owned
by the application and remain separate from response negotiation.
Structs§
- GraphQL
Request - A GraphQL request parsed from an Actix JSON request body.
- GraphQL
Response - Converts a runtime response to JSON with HTTP 200 for execution results, including partial data and root-null results with errors.
Functions§
- graphiql_
html - Returns the built-in GraphiQL page for an application-selected endpoint.