Safe Haskell | None |
---|---|
Language | Haskell2010 |
GraphQL Wai Server Applications
Synopsis
- gqlSocketApp :: RootResCon IO e que mut sub => GQLRootResolver IO e que mut sub -> GQLState IO e -> ServerApp
- gqlSocketMonadIOApp :: (RootResCon m e que mut sub, MonadIO m) => GQLRootResolver m e que mut sub -> GQLState m e -> (m () -> IO ()) -> ServerApp
- initGQLState :: IO (GQLState m e)
- type GQLState m e = MVar (ClientRegister m e)
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