github-pages-deploy-action/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts
2020-03-06 22:45:40 -05:00

12 lines
342 B
TypeScript

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;