Safe Haskell | None |
---|---|
Language | Haskell2010 |
Build GraphQL APIs with your favourite functional language!
Synopsis
- class Interpreter k m e where
- interpreter :: Monad m => RootResCon m e query mut sub => GQLRootResolver m e query mut sub -> k
Documentation
class Interpreter k m e where Source #
main query processor and resolver possible versions of interpreter
with effect and state: where
GQLState
is State Monad of subscriptionsk :: GQLState -> a -> IO a
without effect and state: stateless query processor without any effect, if you don't need any subscription use this one , is simple and fast
k :: a -> IO a -- or k :: GQLRequest -> IO GQLResponse
interpreter :: Monad m => RootResCon m e query mut sub => GQLRootResolver m e query mut sub -> k Source #
Instances
Interpreter (GQLRequest -> m GQLResponse) m e Source # | |
Defined in Data.Morpheus.Execution.Server.Interpreter interpreter :: (Monad m, RootResCon m e query mut sub) => GQLRootResolver m e query mut sub -> GQLRequest -> m GQLResponse Source # |