UNPKG

486 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { ValidationContext } from '../ValidationContext';
3/**
4 * Subscriptions must only include a non-introspection field.
5 *
6 * A GraphQL subscription is valid only if it contains a single root field and
7 * that root field is not an introspection field.
8 *
9 * See https://spec.graphql.org/draft/#sec-Single-root-field
10 */
11export declare function SingleFieldSubscriptionsRule(
12 context: ValidationContext,
13): ASTVisitor;