UNPKG

511 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { ValidationContext } from '../ValidationContext';
3/**
4 * Overlapping fields can be merged
5 *
6 * A selection set is only valid if all fields (including spreading any
7 * fragments) either correspond to distinct response names or can be merged
8 * without ambiguity.
9 *
10 * See https://spec.graphql.org/draft/#sec-Field-Selection-Merging
11 */
12export declare function OverlappingFieldsCanBeMergedRule(
13 context: ValidationContext,
14): ASTVisitor;