When applied to a field in a query or mutation, this directive prevents an error in that field from stopping the entire operation. Instead, the field will return a default ‘zero’ value (e.g., false for Booleans, an empty array [] for lists, an empty object {} for objects, etc.) and the original error will be moved to the extensions.skippedErrors array in the response.

This is useful for non-critical fields where a failure should not block the following fields from being executed. Example: click(label: "Close modal") @skipErrors

Definition

directive @skipErrors on FIELD

Locations

  • FIELD