UNPKG

458 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { ValidationContext } from '../ValidationContext';
3/**
4 * Fields on correct type
5 *
6 * A GraphQL document is only valid if all fields selected are defined by the
7 * parent type, or are an allowed meta field such as __typename.
8 *
9 * See https://spec.graphql.org/draft/#sec-Field-Selections
10 */
11export declare function FieldsOnCorrectTypeRule(
12 context: ValidationContext,
13): ASTVisitor;