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