UNPKG

369 BTypeScriptView Raw
1import { ValidationContext } from "../ValidationContext";
2import { ASTVisitor } from "../../language/visitor";
3
4/**
5 * Fields on correct type
6 *
7 * A GraphQL document is only valid if all fields selected are defined by the
8 * parent type, or are an allowed meta field such as __typename.
9 */
10export function FieldsOnCorrectType(context: ValidationContext): ASTVisitor;