Interface DirectiveRegistry
-
- All Known Implementing Classes:
DirectiveRegistryImpl
public interface DirectiveRegistryRegistry 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DirectivegetDirective(java.lang.String name)Retrieves the registeredGraphQLScalarTypefor this GraphQL CustomScalar.voidregisterAllDirectives()This method registers allGraphQLScalarTypethat are declared as SpringComponent.voidregisterDirective(Directive directive)Manually register one GraphQL directive.
-
-
-
Method Detail
-
registerAllDirectives
void registerAllDirectives()
This method registers allGraphQLScalarTypethat are declared as SpringComponent. Another way to registerGraphQLScalarTypeis to call the#registerGraphQLScalarType(GraphQLScalarType).
-
registerDirective
void registerDirective(Directive directive)
Manually register one GraphQL directive.- Parameters:
directive-
-
-