purescript-graphql icon indicating copy to clipboard operation
purescript-graphql copied to clipboard

Typechecking Variables

Open hendrikniemann opened this issue 5 years ago • 0 comments

We have to typecheck variables based on their definition and place of use. The following query is invalid but is currently accepted by PureScript GraphQL.

type Query {
  hello(name: String!)
}

query example($name: Int!) {
  hello(name: $name)
}

hendrikniemann avatar Jul 29 '20 18:07 hendrikniemann