FunctionscoerceInputLiteralcoerceInputLiteral CallablecoerceInputLiteral(valueNode: ValueNode, type: GraphQLInputType, variableValues?: Maybe<VariableValues>, fragmentVariableValues?: Maybe<VariableValues>): unknownProduces a coerced "internal" JavaScript value given a GraphQL Value AST. Returns undefined when the value could not be validly coerced according to the provided type.ParametersvalueNode: ValueNodetype: GraphQLInputTypeoptionalvariableValues: Maybe<VariableValues>optionalfragmentVariableValues: Maybe<VariableValues>Returns unknown
Produces a coerced "internal" JavaScript value given a GraphQL Value AST.
Returns
undefined
when the value could not be validly coerced according to the provided type.