Skip to main content

UniqueOperationTypesRule

Callable

  • UniqueOperationTypesRule(context: SDLValidationContext): ASTVisitor

  • Unique operation types

    A GraphQL document is only valid if it has only one type per operation.


    Parameters

    • context: SDLValidationContext

    Returns ASTVisitor