morpheus-graphql-0.13.0: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Server

Description

GraphQL Wai Server Applications

Synopsis

Documentation

webSocketsApp :: (MonadIO m, MonadUnliftIO m, Eq (StreamChannel e), GQLChannel e) => (Input WS -> Stream WS e m) -> m (ServerApp, e -> m ()) Source #

Wai WebSocket Server App for GraphQL subscriptions

httpPubApp :: (MonadIO m, MapAPI a) => (Input HTTP -> Stream HTTP e m) -> (e -> m ()) -> a -> m a Source #

subscriptionApp :: (MonadUnliftIO m, Eq (StreamChannel e), GQLChannel e) => (Store e m -> (Scope WS e m -> m ()) -> m app) -> (Input WS -> Stream WS e m) -> m (app, e -> m ()) Source #

Wai WebSocket Server App for GraphQL subscriptions