Skip to main content

validateInputValue

Callable

  • validateInputValue(inputValue: unknown, type: GraphQLInputType, onError: (error: GraphQLError, path: readonly (string | number)[]) => void, hideSuggestions?: Maybe<boolean>): void

  • Validate that the provided input value is allowed for this type, collecting all errors via a callback function.


    Parameters

    • inputValue: unknown
    • type: GraphQLInputType
    • onError: (error: GraphQLError, path: readonly (string | number)[]) => void
      • optionalhideSuggestions: Maybe<boolean>

      Returns void