Interface GraphQLObjectBuilder
- All Known Implementing Classes:
GraphQLObjectBuilderImpl
public interface GraphQLObjectBuilder
Builder for creating GraphQL object types.
-
Method Summary
Modifier and Type Method Description graphql.schema.GraphQLObjectType
build()
Build the object type.GraphQLObjectBuilder
implement(graphql.schema.GraphQLInterfaceType type)
Indicate that this type implements the given interface.GraphQLFieldBuilder<GraphQLObjectBuilder>
newField()
Define a new field for this object.GraphQLObjectBuilder
over(se.l4.commons.types.reflect.TypeRef type)
Set theTypeRef
this object is based on.GraphQLObjectBuilder
setDescription(String description)
Set the description of the object.GraphQLObjectBuilder
setName(String name)
Set the name of the object.
-
Method Details
-
over
Set theTypeRef
this object is based on. Will copy name and description from the type.- Parameters:
type
-- Returns:
-
setName
Set the name of the object.- Parameters:
name
-- Returns:
-
setDescription
Set the description of the object. -
newField
GraphQLFieldBuilder<GraphQLObjectBuilder> newField()Define a new field for this object.- Returns:
-
implement
Indicate that this type implements the given interface.- Returns:
-
build
graphql.schema.GraphQLObjectType build()Build the object type.
-