Interface TypeVisitorHelper


public interface TypeVisitorHelper
Helps GraphQLTypeVisitors to recognize whether a type is the subscription type. Exposed as a variable in TraverserContext.
Since:
1.2.1
Author:
Rossen Stoyanchev
  • Method Summary

    Modifier and Type
    Method
    Description
    create(graphql.schema.GraphQLSchema schema)
    Create an instance with the given GraphQLSchema.
    boolean
    isSubscriptionType(graphql.schema.GraphQLNamedType type)
    Whether the given type is the subscription type.
  • Method Details

    • isSubscriptionType

      boolean isSubscriptionType(graphql.schema.GraphQLNamedType type)
      Whether the given type is the subscription type.
      Parameters:
      type - the GraphQL type to check
    • create

      static TypeVisitorHelper create(graphql.schema.GraphQLSchema schema)
      Create an instance with the given GraphQLSchema.
      Parameters:
      schema - the GraphQL schema to use