OverlappingFieldsCanBeMergedRule.d.ts 511 B

1234567891011121314
  1. import type { ASTVisitor } from '../../language/visitor';
  2. import 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. */
  12. export declare function OverlappingFieldsCanBeMergedRule(
  13. context: ValidationContext,
  14. ): ASTVisitor;