Interface DirectiveRegistry

All Known Implementing Classes:
DirectiveRegistryImpl

public interface DirectiveRegistry
Registry for all GraphQL directives that are available, that is: the GraphQL standard directives and the ones that are defined in the GraphQL schema.
Author:
etienne-sf
  • Method Summary

    Modifier and Type Method Description
    Directive getDirective​(java.lang.String name)
    Retrieves the registered GraphQLScalarType for this GraphQL CustomScalar.
    void registerAllDirectives()
    This method registers all GraphQLScalarType that are declared as Spring Component.
    void registerDirective​(Directive directive)
    Manually register one GraphQL directive.
  • Method Details

    • registerAllDirectives

      void registerAllDirectives()
      This method registers all GraphQLScalarType that are declared as Spring Component. Another way to register GraphQLScalarType is to call the #registerGraphQLScalarType(GraphQLScalarType).
    • registerDirective

      void registerDirective​(Directive directive)
      Manually register one GraphQL directive.
      Parameters:
      directive -
    • getDirective

      Directive getDirective​(java.lang.String name)
      Retrieves the registered GraphQLScalarType for this GraphQL CustomScalar.
      Parameters:
      name -
      Returns:
      the Directive, or null if no directive has been registered for the given name