LoneAnonymousOperationRule.d.ts 404 B

123456789101112
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ASTValidationContext } from '../ValidationContext';
  3. /**
  4. * Lone anonymous operation
  5. *
  6. * A GraphQL document is only valid if when it contains an anonymous operation
  7. * (the query short-hand) that it contains only that one operation definition.
  8. */
  9. export function LoneAnonymousOperationRule(
  10. context: ASTValidationContext,
  11. ): ASTVisitor;