Decorates a class with the ability to build a custom type
- The implementing classType | Name and description |
---|---|
boolean |
collection |
boolean |
defaultNull |
java.util.List<Field> |
fields |
Type Params | Return Type | Name and description |
---|---|---|
|
GraphQLInputType |
buildCustomInputType(java.lang.String name, GraphQLTypeManager typeManager, MappingContext mappingContext, boolean nullable) Builds a custom object returnType if the supplied return returnType is a Map |
|
GraphQLOutputType |
buildCustomType(java.lang.String name, GraphQLTypeManager typeManager, MappingContext mappingContext) Builds a custom object returnType if the supplied return returnType is a Map |
|
T |
collection(boolean collection) |
|
T |
defaultNull(boolean defaultNull) |
|
void |
field(java.lang.String name, java.util.List<java.lang.Class> type, groovy.lang.Closure closure = null) |
|
void |
field(java.lang.String name, java.lang.Class type, groovy.lang.Closure closure = null) |
|
void |
field(java.lang.String name, java.lang.String typeName, groovy.lang.Closure closure) |
|
void |
field(ComplexField field) |
Builds a custom object returnType if the supplied return returnType is a Map
typeManager
- The returnType managermappingContext
- The mapping contextBuilds a custom object returnType if the supplied return returnType is a Map
typeManager
- The returnType managermappingContext
- The mapping context