Class GraphQLFieldBuilderImpl<Parent>
java.lang.Object
se.l4.graphql.binding.internal.builders.GraphQLFieldBuilderImpl<Parent>
- All Implemented Interfaces:
GraphQLFieldBuilder<Parent>
public class GraphQLFieldBuilderImpl<Parent> extends Object implements GraphQLFieldBuilder<Parent>
-
Constructor Summary
Constructors Constructor Description GraphQLFieldBuilderImpl(GraphQLResolverContext context, Breadcrumb breadcrumb, Parent parent, BiConsumer<graphql.schema.GraphQLFieldDefinition,DataFetchingSupplier<?>> consumer)
-
Method Summary
Modifier and Type Method Description Parent
done()
Indicate that the field is done building and that it should be added to the parent type.GraphQLArgumentBuilder<GraphQLFieldBuilder<Parent>>
newArgument()
Start building a new argument for this field.GraphQLFieldBuilder<Parent>
over(se.l4.commons.types.reflect.MemberRef member)
Set aMemberRef
this field is based on.GraphQLFieldBuilder<Parent>
setDeprecation(String reason)
Set if the field is deprecated.GraphQLFieldBuilder<Parent>
setDescription(String description)
Set the description of the field.GraphQLFieldBuilder<Parent>
setName(String name)
Set the name of the field.GraphQLFieldBuilder<Parent>
setType(graphql.schema.GraphQLOutputType type)
Set the type of this field.GraphQLFieldBuilder<Parent>
withSupplier(DataFetchingSupplier<?> fetcher)
Set the supplier to use for the field.
-
Constructor Details
-
GraphQLFieldBuilderImpl
public GraphQLFieldBuilderImpl(GraphQLResolverContext context, Breadcrumb breadcrumb, Parent parent, BiConsumer<graphql.schema.GraphQLFieldDefinition,DataFetchingSupplier<?>> consumer)
-
-
Method Details
-
over
Description copied from interface:GraphQLFieldBuilder
Set aMemberRef
this field is based on. This will copy name, description and deprecation status from the member via annotations.- Specified by:
over
in interfaceGraphQLFieldBuilder<Parent>
- Returns:
-
setName
Description copied from interface:GraphQLFieldBuilder
Set the name of the field.- Specified by:
setName
in interfaceGraphQLFieldBuilder<Parent>
- Returns:
-
setDescription
Description copied from interface:GraphQLFieldBuilder
Set the description of the field.- Specified by:
setDescription
in interfaceGraphQLFieldBuilder<Parent>
-
setDeprecation
Description copied from interface:GraphQLFieldBuilder
Set if the field is deprecated.- Specified by:
setDeprecation
in interfaceGraphQLFieldBuilder<Parent>
-
setType
Description copied from interface:GraphQLFieldBuilder
Set the type of this field.- Specified by:
setType
in interfaceGraphQLFieldBuilder<Parent>
- Returns:
-
newArgument
Description copied from interface:GraphQLFieldBuilder
Start building a new argument for this field.- Specified by:
newArgument
in interfaceGraphQLFieldBuilder<Parent>
- Returns:
-
withSupplier
Description copied from interface:GraphQLFieldBuilder
Set the supplier to use for the field.- Specified by:
withSupplier
in interfaceGraphQLFieldBuilder<Parent>
-
done
Description copied from interface:GraphQLFieldBuilder
Indicate that the field is done building and that it should be added to the parent type.- Specified by:
done
in interfaceGraphQLFieldBuilder<Parent>
- Returns:
-