Safe Haskell | None |
---|---|
Language | Haskell2010 |
Definitions used by the validation rules and the validator itself.
Synopsis
- data Error = Error {}
- data Path
- data Rule m
- = DefinitionRule (Definition -> RuleT m)
- | OperationDefinitionRule (OperationDefinition -> RuleT m)
- | FragmentDefinitionRule (FragmentDefinition -> RuleT m)
- type RuleT m = ReaderT (Validation m) Maybe Error
- data Validation m = Validation {}
Documentation
If an error can be associated to a particular field in the GraphQL result, it must contain an entry with the key path that details the path of the response field which experienced the error. This allows clients to identify whether a null result is intentional or caused by a runtime error.