morpheus-graphql-0.0.1: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Error.Variable

Synopsis

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"." |