Skip to main content

Validation timeouts

Stops validation when it exceeds a time budget.

Practices implemented

Applies to

  • GraphQL servers
  • Gateways and proxies

Configuration (suggested defaults)

ParameterDefaultNotes
validationTimeoutMs250Abort validation after a time budget.
fallbackBehaviorrejectReject queries that exceed the timeout.

Implementation notes

  • Enforce timeouts during validation, before execution starts.
  • Surface clear errors that point to validation cost.
  • Keep validation rules deterministic.

Cautions

  • Complex schemas may require higher timeouts.
  • Timeouts can hide performance regressions if not monitored.

Problems addressed