Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions gaps/GAP-10/DRAFT.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,9 @@ ValidateNoNestedMocks(selectionSet, isMockedByParent) :

## No Conflicting Mocks

If multiple equivalent selections ({Field Selection Merging}) exist for a field,
If multiple equivalent selections
([Field Selection Merging](https://spec.graphql.org/September2025/#sec-Field-Selection-Merging))
exist for a field,
either all must use `@mock` with identical arguments, or none may use `@mock`.
This rule extends across fragment boundaries.

Expand All @@ -578,7 +580,7 @@ query GetFoo($id: ID!) {

ValidateNoConflictingMocks(operationDefinition) :
1. Collect all fields in the operation, expanding fragment spreads, grouped by
{response name}.
response name.
1. For each group of fields sharing a response name:
* If any field has a `@mock` directive, every field in the group must have
a `@mock` directive with identical arguments.
Expand Down