blob: 6091c6ce2e442ad5c2eebde8da957045513ba297 [file] [log] [blame]
import { ASTVisitor } from '../../language/visitor';
import { ValidationContext } from '../ValidationContext';
/**
* Fields on correct type
*
* A GraphQL document is only valid if all fields selected are defined by the
* parent type, or are an allowed meta field such as __typename.
*/
export function FieldsOnCorrectTypeRule(context: ValidationContext): ASTVisitor;