Skip to main content

coerceInputValue

Callable

  • coerceInputValue(inputValue: unknown, type: GraphQLInputType, onError?: OnErrorCB, hideSuggestions?: Maybe<boolean>): unknown

  • Coerces a JavaScript value given a GraphQL Input Type.


    Parameters

    • inputValue: unknown
    • type: GraphQLInputType
    • onError: OnErrorCB = defaultOnError
    • optionalhideSuggestions: Maybe<boolean>

    Returns unknown