Class OperationCreator

java.lang.Object
io.smallrye.graphql.schema.creator.ModelCreator
io.smallrye.graphql.schema.creator.OperationCreator

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

  • Method Details

    • 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
    • getDirectiveLocation

      public String getDirectiveLocation()
      Specified by:
      getDirectiveLocation in class ModelCreator