morpheus-graphql-0.3.0: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Client

Documentation

class Fetch a where Source #

Minimal complete definition

fetch

Associated Types

type Args a :: * Source #

Methods

__fetch :: (Monad m, Show a, ToJSON (Args a), FromJSON a) => String -> String -> (ByteString -> m ByteString) -> Args a -> m (Either String a) Source #

fetch :: (Monad m, FromJSON a) => (ByteString -> m ByteString) -> Args a -> m (Either String a) Source #

defineQuery :: IO (Validation DataTypeLib) -> (GQLQueryRoot, String) -> Q [Dec] Source #

defineByDocument :: IO ByteString -> (GQLQueryRoot, String) -> Q [Dec] Source #

defineByDocumentFile :: String -> (GQLQueryRoot, String) -> Q [Dec] Source #

defineByIntrospection :: IO ByteString -> (GQLQueryRoot, String) -> Q [Dec] Source #

defineByIntrospectionFile :: String -> (GQLQueryRoot, String) -> Q [Dec] Source #