@groovy.transform.Trait @groovy.transform.CompileStatic trait Arguable<T> extends ExecutesClosures
Decorates a class with a description property and builder method.
T
- The implementing classType | Name and description |
---|---|
java.util.List<CustomArgument> |
arguments |
Type Params | Return Type | Name and description |
---|---|---|
|
T |
argument(java.lang.String name, java.util.List<java.lang.Class<?>> type, groovy.lang.Closure closure) Creates an argument to the operation that is a list of a simple type. |
|
T |
argument(java.lang.String name, java.lang.Class<?> type, groovy.lang.Closure closure) Creates an argument to the operation that is of the returnType provided. |
|
T |
argument(java.lang.String name, java.lang.String typeName, groovy.lang.Closure closure) Creates an argument to the operation that is a custom type. |
|
java.util.List<graphql.schema.GraphQLArgument> |
getArguments(GraphQLTypeManager typeManager, org.grails.datastore.mapping.model.MappingContext mappingContext) |
Methods inherited from class | Name |
---|---|
trait ExecutesClosures |
withDelegate |
Creates an argument to the operation that is a list of a simple type. The list can not have more than 1 element and that element must be a class.
name
- The name of the argumenttype
- The returnType of the argumentclosure
- To provide additional data about the argumentCreates an argument to the operation that is of the returnType provided.
name
- The name of the argumenttype
- The returnType of the argumentclosure
- To provide additional data about the argumentCreates an argument to the operation that is a custom type.
name
- The name of the argumentclosure
- To provide additional data about the argument