Skip to main content

Crate spikard_graphql

Crate spikard_graphql 

Source
Expand description

Spikard GraphQL - GraphQL support for Spikard with async-graphql integration.

This crate provides a high-level, type-safe GraphQL implementation built on async-graphql, with support for:

  • Query, Mutation, and Subscription types
  • Builder pattern for schema construction
  • Introspection control
  • Complexity and depth limits
  • Federation support (via feature flag)
  • Integration with Spikard’s HTTP runtime

§Features

  • federation - Enable Apollo Federation support

Re-exports§

pub use error::GraphQLError;
pub use error::Result as GraphQLResult;
pub use executor::GraphQLExecutor;
pub use handler::GraphQLHandler;
pub use routes::GraphQLRouteConfig;
pub use schema::FullSchemaConfig;
pub use schema::QueryMutationConfig;
pub use schema::QueryOnlyConfig;
pub use schema::SchemaBuilder;
pub use schema::SchemaConfig;
pub use schema::SchemaError;
pub use schema::SchemaResult;
pub use schema::schema_full;
pub use schema::schema_query_mutation;
pub use schema::schema_query_only;

Modules§

error
GraphQL error types and handling
executor
GraphQL executor for executing queries and mutations.
handler
GraphQL HTTP handler integration with Spikard
routes
GraphQL route configuration and integration helpers
schema
GraphQL schema builder with support for Query, Mutation, and Subscription types.