GAP-1005: @redact Directive
Version: 2025-12
Authors: Sam Rivera, Keiko Morgan
Discussion: github.com/graphql/gaps/pull/1005

GAP-1005: @redact Directive

This release adds a reason string.

1Overview

The directive MAY appear on field definitions and input field definitions.

Example № 1directive @redact(reason: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION

2Motivation

A reason gives operators enough context to understand why values are masked.

  1. 1Overview
  2. 2Motivation