morpheus-graphql-0.8.0: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Server

Description

GraphQL Wai Server Applications

Synopsis

Documentation

gqlSocketApp :: RootResCon IO e que mut sub => GQLRootResolver IO e que mut sub -> GQLState IO e -> ServerApp Source #

Same as above but specific to IO

gqlSocketMonadIOApp :: (RootResCon m e que mut sub, MonadIO m) => GQLRootResolver m e que mut sub -> GQLState m e -> (m () -> IO ()) -> ServerApp Source #

Wai WebSocket Server App for GraphQL subscriptions

initGQLState :: IO (GQLState m e) Source #

initializes empty GraphQL state

type GQLState m e = MVar (ClientRegister m e) Source #

shared GraphQL state between websocket and http server, stores information about subscriptions