Expand description
FraiseQL HTTP Server
HTTP server for FraiseQL v2 compiled GraphQL execution engine.
§Architecture
The server exposes a GraphQL HTTP endpoint that:
- Receives GraphQL queries via POST
- Executes queries using the runtime Executor
- Returns GraphQL-compliant JSON responses
§Features
- GraphQL endpoint (
/graphql) - Health check endpoint (
/health) - Schema introspection endpoint (
/introspection) - CORS support
- Compression (gzip, br, zstd)
- Request tracing
- APQ (Automatic Persisted Queries)
- Query caching
- Authentication middleware (optional)
Re-exports§
pub use logging::ErrorDetails;pub use logging::LogLevel;pub use logging::LogMetrics;pub use logging::RequestContext;pub use logging::RequestId;pub use logging::RequestLogger;pub use logging::SourceLocation;pub use logging::StructuredLogEntry;pub use metrics_server::MetricsCollector;pub use metrics_server::PrometheusMetrics;pub use schema::CompiledSchemaLoader;pub use server::Server;pub use server_config::ServerConfig;pub use tls::TlsSetup;pub use fraiseql_auth as auth;
Modules§
- api
- API endpoints for FraiseQL Server
- api_key
- API key authentication.
- config
- Runtime configuration types loaded from
fraiseql.tomlor environment variables. Runtime configuration types for the FraiseQL server. - error
- GraphQL error response handling.
- extractors
- Custom extractors for GraphQL handlers.
- logging
- Structured JSON logging for observability.
- metrics_
server - Canonical metrics implementation for
fraiseql-server. - middleware
- HTTP middleware.
- pool
- Connection pool management.
- prelude
- Convenience re-exports for common server types.
- resilience
- Resilience primitives: backpressure and retry policies. Resilience primitives for the FraiseQL server.
- routes
- HTTP routes.
- schema
- Schema loading and management.
- server
- HTTP server implementation.
- server_
config - Server configuration (
*Configtypes). - storage
- Object storage backends for file upload and download.
- subscriptions
- Subscription infrastructure for FraiseQL
- tls
- TLS/SSL server configuration and enforcement.
- token_
revocation - Token revocation — reject JWTs whose
jticlaim has been revoked. - tracing_
utils - Stub tracing utilities when federation is disabled.
- trusted_
documents - Trusted documents / query allowlist.
- validation
- GraphQL request validation — re-exported from
fraiseql-core.
Structs§
- Request
Validator - AST-based GraphQL request validator.
Enums§
- Complexity
Validation Error - GraphQL query validation error types (depth, complexity, aliases).
- Server
Error - Server error type.
Type Aliases§
- Result
- Server result type.