SingleFieldSubscriptionsRule.d.ts 342 B

1234567891011
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ASTValidationContext } from '../ValidationContext';
  3. /**
  4. * Subscriptions must only include one field.
  5. *
  6. * A GraphQL subscription is valid only if it contains a single root field.
  7. */
  8. export function SingleFieldSubscriptionsRule(
  9. context: ASTValidationContext,
  10. ): ASTVisitor;