Package graphql.schema
Class GraphQLDirective.Builder
- Enclosing class:
GraphQLDirective
-
Field Summary
Fields inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry, description, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargument
(GraphQLArgument argument) argument
(GraphQLArgument.Builder builder) Same effect as the argument(GraphQLArgument).argument
(UnaryOperator<GraphQLArgument.Builder> builderFunction) Take an argument builder in a function definition and apply.build()
This is used to clear all the arguments in the builder so far.definition
(DirectiveDefinition definition) description
(String description) repeatable
(boolean repeatable) replaceArguments
(List<GraphQLArgument> arguments) validLocation
(Introspection.DirectiveLocation validLocation) validLocations
(Introspection.DirectiveLocation... validLocations) Methods inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
repeatable
-
validLocations
-
validLocation
-
clearValidLocations
-
argument
-
replaceArguments
-
argument
Take an argument builder in a function definition and apply. Can be used in a jdk8 lambda e.g.:argument(a -> a.name("argumentName"))
- Parameters:
builderFunction
- a supplier for the builder impl- Returns:
- this
-
argument
Same effect as the argument(GraphQLArgument). Builder.build() is called from within- Parameters:
builder
- an un-built/incomplete GraphQLArgument- Returns:
- this
-
clearArguments
This is used to clear all the arguments in the builder so far.- Returns:
- the builder
-
definition
-
name
- Overrides:
name
in classGraphqlTypeBuilder<GraphQLDirective.Builder>
-
description
- Overrides:
description
in classGraphqlTypeBuilder<GraphQLDirective.Builder>
-
build
-