Interface GraphQLInterfaceBuilder
- All Known Implementing Classes:
GraphQLInterfaceBuilderImpl
public interface GraphQLInterfaceBuilder
Builder for creating GraphQL object types.
-
Method Summary
Modifier and Type Method Description GraphQLInterfaceBuilder
addImplementation(se.l4.commons.types.reflect.TypeRef type)
Add an implementation of this interface.graphql.schema.GraphQLInterfaceType
build()
Build the object type.GraphQLFieldBuilder<GraphQLInterfaceBuilder>
newField()
Define a new field for this object.GraphQLInterfaceBuilder
over(se.l4.commons.types.reflect.TypeRef type)
Set theTypeRef
this object is based on.GraphQLInterfaceBuilder
setDescription(String description)
Set the description of the object.GraphQLInterfaceBuilder
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<GraphQLInterfaceBuilder> newField()Define a new field for this object.- Returns:
-
addImplementation
Add an implementation of this interface.- Parameters:
type
-- Returns:
-
build
graphql.schema.GraphQLInterfaceType build()Build the object type.
-