vania_graphql 1.0.0
vania_graphql: ^1.0.0 copied to clipboard
Production-ready GraphQL execution, HTTP, and subscription integration for Vania.
1.0.0 #
First stable release.
- Requires
vania2.0.0. - Schema registration, execution, an HTTP endpoint, and the GraphiQL console.
- Subscriptions over both SSE and the
graphql-transport-wsWebSocket protocol, served on the app's single HTTP port through core'sWebSocketUpgradeDispatcher. The dispatcher override composes withvania_websocket, so both can run together. GraphQLConfigcoverssubscriptionsOverWebSocket,subscriptionsEndpoint, andkeepAliveInterval.- GraphiQL and schema introspection are disabled when
APP_ENVisproduction, since they publish your entire schema. SetGRAPHQL_GRAPHIQL_ENABLED/GRAPHQL_INTROSPECTION_ENABLEDto override, and put the endpoint behind auth if you do. - Routes are registered in
boot()rather thanregister(), so downstream providers can adjust the config first. - Subscriptions now also flow over the
graphql-transport-wsWebSocket protocol on the app's single HTTP port.GraphQLServiceProviderinstalls aGraphQLWsDispatcherthat composes with any pre-existingWebSocketUpgradeDispatcheroverride (e.g.vania_websocket), so both can coexist. GraphQLConfiggainssubscriptionsOverWebSocket,subscriptionsEndpoint, andkeepAliveInterval.- Route registration moved from
register()toboot()so downstream providers can influence config first. - GraphiQL page bumped to GraphiQL 3, wired to both
/graphqland/graphql/ws.renderMinimal()fallback kept for offline dev.