FunctionscoerceInputLiteralcoerceInputLiteral CallablecoerceInputLiteral(valueNode: ValueNode, type: GraphQLInputType, variableValues?: Maybe<ObjMap<unknown>>, fragmentVariableValues?: Maybe<FragmentVariables>): 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<ObjMap<unknown>>optionalfragmentVariableValues: Maybe<FragmentVariables>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.