LoneSchemaDefinitionRule.d.ts 321 B

1234567891011
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { SDLValidationContext } from '../ValidationContext';
  3. /**
  4. * Lone Schema definition
  5. *
  6. * A GraphQL document is only valid if it contains only one schema definition.
  7. */
  8. export function LoneSchemaDefinitionRule(
  9. context: SDLValidationContext,
  10. ): ASTVisitor;