Safe Haskell | None |
---|---|
Language | Haskell2010 |
GraphQL Wai Server Applications
Synopsis
- webSocketsApp :: (MonadIO m, MonadUnliftIO m, Eq channel) => (Input WS -> Stream WS (Event channel a) m) -> m (ServerApp, Event channel a -> m ())
- httpPubApp :: (MonadIO m, MapAPI a b) => (Input HTTP -> Stream HTTP e m) -> (e -> m ()) -> a -> m b
- subscriptionApp :: (MonadUnliftIO m, Eq channel) => (Store (Event channel a) m -> (Scope WS (Event channel a) m -> m ()) -> m app) -> (Input WS -> Stream WS (Event channel a) m) -> m (app, Event channel a -> m ())
- type ServerConstraint e m = (MonadIO m, MonadUnliftIO m)
- httpPlayground :: ByteString
- compileTimeSchemaValidation :: IntrospectConstraint m event qu mu su => proxy (root m event qu mu su) -> Q Exp
Documentation
webSocketsApp :: (MonadIO m, MonadUnliftIO m, Eq channel) => (Input WS -> Stream WS (Event channel a) m) -> m (ServerApp, Event channel a -> m ()) Source #
Wai WebSocket Server App for GraphQL subscriptions
httpPubApp :: (MonadIO m, MapAPI a b) => (Input HTTP -> Stream HTTP e m) -> (e -> m ()) -> a -> m b Source #
subscriptionApp :: (MonadUnliftIO m, Eq channel) => (Store (Event channel a) m -> (Scope WS (Event channel a) m -> m ()) -> m app) -> (Input WS -> Stream WS (Event channel a) m) -> m (app, Event channel a -> m ()) Source #
Wai WebSocket Server App for GraphQL subscriptions
type ServerConstraint e m = (MonadIO m, MonadUnliftIO m) Source #
compileTimeSchemaValidation :: IntrospectConstraint m event qu mu su => proxy (root m event qu mu su) -> Q Exp Source #
normaly morpheus server validates schema at runtime (after the schema derivation). this method allows you to validate it at compile time.