FunctionscoerceInputValuecoerceInputValue CallablecoerceInputValue(inputValue: unknown, type: GraphQLInputType): unknownCoerces a JavaScript value given a GraphQL Input Type. Returns undefined when the value could not be validly coerced according to the provided type.ParametersinputValue: unknowntype: GraphQLInputTypeReturns unknown
Coerces a JavaScript value given a GraphQL Input Type.
Returns
undefined
when the value could not be validly coerced according to the provided type.