@PublicApi public static class QueryTransformer.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
QueryTransformer |
build() |
QueryTransformer.Builder |
fragmentsByName(java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName)
Fragment by name map.
|
QueryTransformer.Builder |
root(Node root)
Specify the root node for the transformation.
|
QueryTransformer.Builder |
rootParentType(GraphQLCompositeType rootParentType)
The type of the parent of the root node.
|
QueryTransformer.Builder |
schema(GraphQLSchema schema)
The schema used to identify the types of the query.
|
QueryTransformer.Builder |
variables(java.util.Map<java.lang.String,java.lang.Object> variables)
Variables used in the query.
|
public QueryTransformer.Builder schema(GraphQLSchema schema)
schema - the schema to usepublic QueryTransformer.Builder variables(java.util.Map<java.lang.String,java.lang.Object> variables)
variables - the variables to usepublic QueryTransformer.Builder root(Node root)
root - the root node to usepublic QueryTransformer.Builder rootParentType(GraphQLCompositeType rootParentType)
root(Node)rootParentType - the root parent typepublic QueryTransformer.Builder fragmentsByName(java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName)
root(Node) and rootParentType(GraphQLCompositeType)fragmentsByName - the map of fragmentspublic QueryTransformer build()