LoneAnonymousOperation.d.ts 457 B

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