morpheus-graphql-0.14.1: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Server

Description

GraphQL Wai Server Applications

Synopsis

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

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.