@groovy.transform.AutoClone @groovy.transform.CompileStatic abstract class CustomGraphQLProperty<T> extends OrderedGraphQLProperty implements Arguable<T>, Deprecatable<T>, Describable<T>, Named<T>, Nullable<T>
Implementation of GraphQLDomainProperty to be used to define additional properties beyond the ones defined in GORM entities
Modifiers | Name | Description |
---|---|---|
protected org.grails.datastore.mapping.model.MappingContext |
mappingContext |
Type | Name and description |
---|---|
groovy.lang.Closure |
closureDataFetcher |
boolean |
input |
java.lang.Integer |
order |
boolean |
output |
Constructor and description |
---|
CustomGraphQLProperty
() |
Type Params | Return Type | Name and description |
---|---|---|
|
T |
dataFetcher(groovy.lang.Closure dataFetcher) |
|
graphql.schema.DataFetcher |
getDataFetcher() |
|
abstract graphql.schema.GraphQLType |
getGraphQLType(GraphQLTypeManager typeManager, GraphQLPropertyType propertyType) |
|
T |
input(boolean input) |
|
T |
order(java.lang.Integer order) |
|
T |
output(boolean output) |
|
void |
setMappingContext(org.grails.datastore.mapping.model.MappingContext mappingContext) |
|
void |
validate() |
Methods inherited from class | Name |
---|---|
class OrderedGraphQLProperty |
compareTo, getOrder |
Groovy Documentation