pub fn coerce_variable_values(
schema: &Valid<Schema>,
operation: &Operation,
values: &JsonMap,
) -> Result<Valid<JsonMap>, RequestError>
Expand description
Coerce the values of variables from a GraphQL request to the types expected by the operation.
This is CoerceVariableValues() in the GraphQL specification.
Returns a request error if a value as an incompatible type, or if a required variable is not provided.