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)
-
-
Field Summary
-
Fields inherited from class io.smallrye.graphql.schema.creator.ModelCreator
directives, referenceCreator
-
-
Constructor Summary
Constructors Constructor Description OperationCreator(ReferenceCreator referenceCreator, ArgumentCreator argumentCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationcreateOperation(org.jboss.jandex.MethodInfo methodInfo, OperationType operationType, Type type)This creates a single operation.-
Methods inherited from class io.smallrye.graphql.schema.creator.ModelCreator
getReferenceCreator, getReturnType, getReturnType, getTypeAutoNameStrategy, populateField, populateField, setDirectives
-
-
-
-
Constructor Detail
-
OperationCreator
public OperationCreator(ReferenceCreator referenceCreator, ArgumentCreator argumentCreator)
-
-
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 methodoperationType- the type of operation (Query / Mutation)type-- Returns:
- a Operation that defines this GraphQL Operation
-
-