Class DirectiveInfo

java.lang.Object
graphql.schema.idl.DirectiveInfo

@PublicApi public class DirectiveInfo extends Object
Info on all the directives provided by graphql specification
  • Field Details

    • GRAPHQL_SPECIFICATION_DIRECTIVE_MAP

      public static final Map<String,GraphQLDirective> GRAPHQL_SPECIFICATION_DIRECTIVE_MAP
      A map from directive name to directive which provided by specification
    • GRAPHQL_SPECIFICATION_DIRECTIVES

      public static final Set<GraphQLDirective> GRAPHQL_SPECIFICATION_DIRECTIVES
      A set of directives which provided by graphql specification
  • Constructor Details

    • DirectiveInfo

      public DirectiveInfo()
  • Method Details

    • isGraphqlSpecifiedDirective

      public static boolean isGraphqlSpecifiedDirective(String directiveName)
      Returns true if a directive with provided directiveName has been defined in graphql specification
      Parameters:
      directiveName - the name of directive in question
      Returns:
      true if the directive provided by graphql specification, and false otherwise
    • isGraphqlSpecifiedDirective

      public static boolean isGraphqlSpecifiedDirective(GraphQLDirective graphQLDirective)
      Returns true if the provided directive has been defined in graphql specification
      Parameters:
      graphQLDirective - the directive in question
      Returns:
      true if the directive provided by graphql specification, and false otherwise