1 | import { ValidationContext } from "../ValidationContext";
|
2 | import { ASTVisitor } from "../../language/visitor";
|
3 |
|
4 | export function fieldsConflictMessage(responseName: string, reason: ConflictReasonMessage): string;
|
5 |
|
6 | /**
|
7 | * Overlapping fields can be merged
|
8 | *
|
9 | * A selection set is only valid if all fields (including spreading any
|
10 | * fragments) either correspond to distinct response names or can be merged
|
11 | * without ambiguity.
|
12 | */
|
13 | export function OverlappingFieldsCanBeMerged(context: ValidationContext): ASTVisitor;
|
14 |
|
15 | // Field name and reason.
|
16 | type ConflictReason = [string, string];
|
17 |
|
18 | // Reason is a string, or a nested list of conflicts.
|
19 | type ConflictReasonMessage = string | Array<ConflictReason>;
|