@PublicApi public static class QueryTraversal.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
QueryTraversal |
build() |
QueryTraversal.Builder |
document(Document document)
document to be used to traverse the whole query.
|
QueryTraversal.Builder |
fragmentsByName(java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName)
Fragment by name map.
|
QueryTraversal.Builder |
operationName(java.lang.String operationName)
specify the operation if a document is traversed and there
are more than one operation.
|
QueryTraversal.Builder |
root(Node root)
Specify the root node for the traversal.
|
QueryTraversal.Builder |
rootParentType(GraphQLObjectType rootParentType)
The type of the parent of the root node.
|
QueryTraversal.Builder |
schema(GraphQLSchema schema)
The schema used to identify the types of the query.
|
QueryTraversal.Builder |
variables(java.util.Map<java.lang.String,java.lang.Object> variables)
Variables used in the query.
|
public QueryTraversal.Builder schema(GraphQLSchema schema)
schema - the schema to usepublic QueryTraversal.Builder operationName(java.lang.String operationName)
operationName - the operation name to usepublic QueryTraversal.Builder document(Document document)
operationName(String) might be required.document - the document to usepublic QueryTraversal.Builder variables(java.util.Map<java.lang.String,java.lang.Object> variables)
variables - the variables to usepublic QueryTraversal.Builder root(Node root)
document(Document).root - the root node to usepublic QueryTraversal.Builder rootParentType(GraphQLObjectType rootParentType)
root(Node)rootParentType - the root parent typepublic QueryTraversal.Builder fragmentsByName(java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName)
root(Node) and rootParentType(GraphQLObjectType)fragmentsByName - the map of fragmentspublic QueryTraversal build()
QueryTraversal object