graphqexl v0.1.0-alpha-rc.24 Graphqexl.Query.Validator

Validate a given Graphqexl.Query.t/0 against a given Graphqexl.Schema.t/0

Specifically, it checks that:

  1. All leaves are scalar types
  2. All types and fields are defined in the schema
  3. All required arguments are provided

Link to this section Summary

Functions

Check whether a query is valid in a given schema

Link to this section Functions

Link to this function

valid?(query, schema)

(since 0.1.0)

Check whether a query is valid in a given schema

Returns: t:boolean.t/0