Expand description
§Ferrox GraphQL (ferrox-graphql)
ferrox-graphql integrates async-graphql into the Ferrox framework, allowing developers to quickly build, serve,
and inspect GraphQL schemas alongside HTTP REST endpoints.
§Architectural Context
Modern backend architectures often serve mobile applications or frontend dashboards that demand precise data fetching.
ferrox-graphql provides high-performance GraphQL schema execution with built-in support for GraphQL Playground
and automatic Schema Definition Language (SDL) export.
§Key Features
- ⚡
async-graphqlIntegration: Full support for Queries, Mutations, and Subscriptions. - 🎮 Interactive Playground: Built-in IDE route for testing queries in development.
- 📜 SDL Export: Programmatically generate
.graphqlschema files for client codegen.
Structs§
- Query
Root - A simple GraphQL Query root for demonstration. In a real scenario, this would be constructed dynamically or composed of multiple Query roots.
Functions§
- build_
schema - Helper to build a basic Ferrox GraphQL schema without mutations or subscriptions
- build_
schema_ with_ context - Helper to build a GraphQL schema with a Repository injected into its context
- export_
sdl - Helper to export the GraphQL Schema (SDL) to a file for Frontend Code Generation
- setup