Class OperationCreator
java.lang.Object
io.smallrye.graphql.schema.creator.ModelCreator
io.smallrye.graphql.schema.creator.OperationCreator
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
ConstructorsConstructorDescriptionOperationCreator(ReferenceCreator referenceCreator, ArgumentCreator argumentCreator) -
Method Summary
Modifier and TypeMethodDescriptioncreateOperation(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 Details
-
OperationCreator
-
-
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 methodoperationType- the type of operation (Query / Mutation)type-- Returns:
- a Operation that defines this GraphQL Operation
-
getDirectiveLocation
- Specified by:
getDirectiveLocationin classModelCreator
-