Skip to main content

LoneSchemaDefinitionRule

Callable

  • LoneSchemaDefinitionRule(context: SDLValidationContext): ASTVisitor

  • Lone Schema definition

    A GraphQL document is only valid if it contains only one schema definition.


    Parameters

    • context: SDLValidationContext

    Returns ASTVisitor