Skip to main content

Crate necrassrs_actix

Crate necrassrs_actix 

Source
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§

GraphQLRequest
A GraphQL request parsed from an Actix JSON request body.
GraphQLResponse
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.