Function diana_actix_web::create_graphql_server[][src]

pub fn create_graphql_server<C, Q, M, S>(
    opts: Options<C, Q, M, S>
) -> Result<impl FnOnce(&mut ServiceConfig) + Clone> where
    C: Any + Send + Sync + Clone,
    Q: Clone + ObjectType + 'static,
    M: Clone + ObjectType + 'static,
    S: Clone + SubscriptionType + 'static, 
Expand description

Creates a new server for queries and mutations. This returns a closure that can be used with Actix Web’s .configure() function to quickly configure a new or existing Actix Web server to use Diana. For examples, see the book. This function is designed for development only, Diana should be used serverlessly for queries and mutations in a production environment. See the book for more information on how to do that.