@groovy.transform.CompileStatic @groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) class GraphQLPropertyMapping extends java.lang.Object implements Deprecatable<GraphQLPropertyMapping>, Describable<GraphQLPropertyMapping>, ExecutesClosures, Named<GraphQLPropertyMapping>
Builder to provide GraphQL specific data for a GORM entity property Usage:
static graphql = {
someProperty input: false, description: "foo"
otherProperty {
input false
description "otherFoo"
//OR: For code completion
otherProperty GraphQLPropertyMapping.build {
}
//If the property name conflicts with a existing method name ex: "description"
property("description") {
...
}
property "description", [:]
}
}
Type | Name and description |
---|---|
groovy.lang.Closure |
dataFetcher The fetcher to retrieve the property |
boolean |
input Whether or not the property should be available to be sent by the client in CREATE or UPDATE operations |
java.lang.Boolean |
nullable Override whether the property is nullable. |
java.lang.Integer |
order The order the property will be in the schema |
boolean |
output Whether or not the property should be available to be requested by the client |
Constructor and description |
---|
GraphQLPropertyMapping
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static GraphQLPropertyMapping |
build(groovy.lang.Closure closure) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The fetcher to retrieve the property
Whether or not the property should be available to be sent by the client in CREATE or UPDATE operations
Override whether the property is nullable. Only takes effect for CREATE types
The order the property will be in the schema
Whether or not the property should be available to be requested by the client
Groovy Documentation