Package graphql.analysis
Class QueryTransformer.Builder
java.lang.Object
graphql.analysis.QueryTransformer.Builder
- Enclosing class:
QueryTransformer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map
<String, FragmentDefinition> private Node
private GraphQLCompositeType
private GraphQLSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
fragmentsByName
(Map<String, FragmentDefinition> fragmentsByName) Fragment by name map.Specify 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.
-
Field Details
-
schema
-
variables
-
root
-
rootParentType
-
fragmentsByName
-
-
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
-
build
-