Function apollo_compiler::execution::coerce_variable_values

source ยท
pub fn coerce_variable_values(
    schema: &Valid<Schema>,
    operation: &Operation,
    values: &JsonMap,
) -> Result<Valid<JsonMap>, InputCoercionError>
Expand description

Coerce the values of variables from a GraphQL request to the types expected by the operation.

If type coercion fails, a request error is returned and the request must not be executed.

This is CoerceVariableValues() in the GraphQL specification.