Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Config = Config {}
- class RenderGQL a where
- renderGQL :: a -> Rendering
- class SelectionTree nodeType where
- isLeaf :: nodeType -> Bool
- getChildrenList :: nodeType -> [nodeType]
- getName :: IsString name => nodeType -> name
- data VALIDATION_MODE
- class ValidateSchema s where
- debugConfig :: Config
- defaultConfig :: Config
- internalSchema :: Schema s
- parseFullSchema :: ByteString -> GQLResult (Schema VALID)
- parseRequest :: GQLRequest -> GQLResult ExecutableDocument
- parseRequestWith :: Config -> Schema VALID -> GQLRequest -> GQLResult (Operation VALID)
- parseSchema :: ByteString -> GQLResult (Schema VALID)
- parseTypeDefinitions :: ByteString -> GQLResult [TypeDefinition ANY CONST]
- render :: RenderGQL a => a -> ByteString
- validateRequest :: Config -> Schema VALID -> ExecutableDocument -> GQLResult (Operation VALID)
Documentation
class RenderGQL a where Source #
Instances
class SelectionTree nodeType where Source #
The SelectionTree
instance is a simple interface for interacting
with morpheus's internal AST while keeping the ability to safely change the concrete
representation of the AST.
The set of operation is very limited on purpose.
data VALIDATION_MODE Source #
Instances
Eq VALIDATION_MODE Source # | |
Defined in Data.Morpheus.Types.Internal.Config (==) :: VALIDATION_MODE -> VALIDATION_MODE -> Bool # (/=) :: VALIDATION_MODE -> VALIDATION_MODE -> Bool # | |
Show VALIDATION_MODE Source # | |
Defined in Data.Morpheus.Types.Internal.Config showsPrec :: Int -> VALIDATION_MODE -> ShowS # show :: VALIDATION_MODE -> String # showList :: [VALIDATION_MODE] -> ShowS # |
class ValidateSchema s where Source #
Instances
debugConfig :: Config Source #
internalSchema :: Schema s Source #
parseFullSchema :: ByteString -> GQLResult (Schema VALID) Source #
parseRequestWith :: Config -> Schema VALID -> GQLRequest -> GQLResult (Operation VALID) Source #
parseSchema :: ByteString -> GQLResult (Schema VALID) Source #
render :: RenderGQL a => a -> ByteString Source #
validateRequest :: Config -> Schema VALID -> ExecutableDocument -> GQLResult (Operation VALID) Source #