Class OperationCreator


  • public class OperationCreator
    extends ModelCreator
    Creates a Operation object
    Author:
    Phillip Kruger (phillip.kruger@redhat.com)
    • Method Detail

      • createOperation

        public Operation createOperation​(org.jboss.jandex.MethodInfo methodInfo,
                                         OperationType operationType,
                                         Type type)
        This creates a single operation. It translate to one entry under a query / mutation in the schema or one method in the Java class annotated with Query or Mutation
        Parameters:
        methodInfo - the java method
        operationType - the type of operation (Query / Mutation)
        type -
        Returns:
        a Operation that defines this GraphQL Operation