Class DirectiveInfo


  • @PublicApi
    public class DirectiveInfo
    extends java.lang.Object
    Info on all the directives provided by graphql specification
    • Field Detail

      • GRAPHQL_SPECIFICATION_DIRECTIVES

        public static final java.util.Set<GraphQLDirective> GRAPHQL_SPECIFICATION_DIRECTIVES
        A set of directives which provided by graphql specification
      • GRAPHQL_SPECIFICATION_DIRECTIVE_MAP

        public static final java.util.Map<java.lang.String,​GraphQLDirective> GRAPHQL_SPECIFICATION_DIRECTIVE_MAP
        A map from directive name to directive which provided by specification
    • Constructor Detail

      • DirectiveInfo

        public DirectiveInfo()
    • Method Detail

      • isGraphqlSpecifiedDirective

        public static boolean isGraphqlSpecifiedDirective​(java.lang.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