Class DirectiveInstance


  • public class DirectiveInstance
    extends Object
    Represents an instance of a GraphQL directive, providing methods to build the directive string and convert the directive arguments to a string representation.
    Author:
    mskacelik
    • Method Detail

      • of

        public static DirectiveInstance of​(org.jboss.jandex.AnnotationInstance annotationInstance)
        Creates and returns a new DirectiveInstance based on the provided Jandex AnnotationInstance.
        Parameters:
        annotationInstance - The Jandex AnnotationInstance representing the GraphQL directive.
        Returns:
        A new DirectiveInstance instance.
      • buildDirective

        public String buildDirective()
        Builds the GraphQL directive string, including its name and arguments.
        Returns:
        The GraphQL directive string.