Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- undefinedVariable :: Text -> Position -> Text -> GQLErrors
- unknownType :: Text -> Position -> GQLErrors
- variableGotInvalidValue :: Text -> Text -> Position -> GQLErrors
- uninitializedVariable :: Position -> Text -> GQLErrors
- unusedVariables :: [EnhancedKey] -> GQLErrors
Documentation
unusedVariables :: [EnhancedKey] -> GQLErrors Source #
VARIABLES:
Variable -> Error (position Query Head) data E = EN | DE query M ( $v : E ){...}
query Q ($a: D) -> "Unknown type "D"."
case String - { "v" : EN } -> no error converts as enum
case type mismatch - { "v": { "a": "v1" ... } } -> "Variable "$v" got invalid value { "a": "v1" ... } ; Expected type LANGUAGE." - { "v" : "v1" } -> "Variable "$v" got invalid value "v1"; Expected type LANGUAGE." - { "v": 1 } "Variable "$v" got invalid value 1; Expected type LANGUAGE."
TODO: variable does not match to argument type - query M ( $v : String ) { a(p:$v) } -> "Variable "$v" of type "String" used in position expecting type "LANGUAGE"." |