Package graphql.analysis
Class QueryTransformer.Builder
java.lang.Object
graphql.analysis.QueryTransformer.Builder
- Enclosing class:
QueryTransformer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
fragmentsByName
(Map<String, FragmentDefinition> fragmentsByName) Fragment by name map.options
(QueryTraversalOptions options) Sets the options to use while traversingSpecify the root node for the transformation.rootParentType
(GraphQLCompositeType rootParentType) The type of the parent of the root node.schema
(GraphQLSchema schema) The schema used to identify the types of the query.Variables used in the query.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
schema
The schema used to identify the types of the query.- Parameters:
schema
- the schema to use- Returns:
- this builder
-
variables
Variables used in the query.- Parameters:
variables
- the variables to use- Returns:
- this builder
-
root
Specify the root node for the transformation.- Parameters:
root
- the root node to use- Returns:
- this builder
-
rootParentType
The type of the parent of the root node. (Seeroot(Node)
- Parameters:
rootParentType
- the root parent type- Returns:
- this builder
-
fragmentsByName
Fragment by name map. Needs to be provided together with aroot(Node)
androotParentType(GraphQLCompositeType)
- Parameters:
fragmentsByName
- the map of fragments- Returns:
- this builder
-
options
Sets the options to use while traversing- Parameters:
options
- the options to use- Returns:
- this builder
-
build
-