morpheus-graphql-0.3.0: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Server

Description

GraphQL Wai Server Applications

Synopsis

Documentation

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

Wai WebSocket Server App for GraphQL subscriptions

initGQLState :: IO (GQLState m e c) Source #

initializes empty GraphQL state

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

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