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

GAP-1005: @redact Directive

This release adds redaction modes.

1Overview

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

Example № 1directive @redact(
  reason: String
  mode: RedactionMode = MASK
) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION

enum RedactionMode {
  MASK
  HASH
  DROP
}

2Motivation

Different observability systems need different handling strategies. A mode lets the schema express the intended behavior without naming a specific tool.

  1. 1Overview
  2. 2Motivation