github-pages-deploy-action/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts

12 lines
342 B
TypeScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
import { ASTVisitor } from '../../language/visitor';
import { ASTValidationContext } from '../ValidationContext';
/**
* Subscriptions must only include one field.
*
* A GraphQL subscription is valid only if it contains a single root field.
*/
export function SingleFieldSubscriptionsRule(
context: ASTValidationContext,
): ASTVisitor;