graphqexl v0.1.0-alpha-rc.25 Graphqexl.Query.Validator
Validate a given Graphqexl.Query.t/0
against a given Graphqexl.Schema.t/0
Specifically, it checks that:
- All leaves are scalar types
- All types and fields are defined in the schema
- 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)valid?(Graphqexl.Query.t(), Graphqexl.Schema.t()) :: boolean()
Check whether a query is valid in a given schema
Returns: t:boolean.t/0