Class GraphQLUnionBuilderImpl
java.lang.Object
se.l4.graphql.binding.internal.builders.GraphQLUnionBuilderImpl
- All Implemented Interfaces:
GraphQLUnionBuilder
public class GraphQLUnionBuilderImpl extends Object implements GraphQLUnionBuilder
-
Constructor Summary
Constructors Constructor Description GraphQLUnionBuilderImpl(GraphQLResolverContext context)
-
Method Summary
Modifier and Type Method Description GraphQLUnionBuilder
addPossibleType(se.l4.commons.types.reflect.TypeRef type)
Add a possible type of this union.graphql.schema.GraphQLUnionType
build()
Build the union type.GraphQLUnionBuilder
over(se.l4.commons.types.reflect.TypeRef type)
Set theTypeRef
this union is based on.GraphQLUnionBuilder
setDescription(String description)
Set the description of the union.GraphQLUnionBuilder
setName(String name)
Set the name of the union.
-
Constructor Details
-
Method Details
-
over
Description copied from interface:GraphQLUnionBuilder
Set theTypeRef
this union is based on. Will copy name and description from the type.- Specified by:
over
in interfaceGraphQLUnionBuilder
- Returns:
-
setName
Description copied from interface:GraphQLUnionBuilder
Set the name of the union.- Specified by:
setName
in interfaceGraphQLUnionBuilder
- Returns:
-
setDescription
Description copied from interface:GraphQLUnionBuilder
Set the description of the union.- Specified by:
setDescription
in interfaceGraphQLUnionBuilder
-
addPossibleType
Description copied from interface:GraphQLUnionBuilder
Add a possible type of this union.- Specified by:
addPossibleType
in interfaceGraphQLUnionBuilder
- Returns:
-
build
public graphql.schema.GraphQLUnionType build()Description copied from interface:GraphQLUnionBuilder
Build the union type.- Specified by:
build
in interfaceGraphQLUnionBuilder
-