morpheus-graphql-0.6.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 #

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