-
- All Implemented Interfaces:
-
com.expediagroup.graphql.server.operations.Query
public final class GraphglueQuery implements Query
Query used to provide the
node
query, which allows for querying Nodes by id
-
-
Field Summary
Fields Modifier and Type Field Description private final NodeDefinition
nodeDefinition
-
Constructor Summary
Constructors Constructor Description GraphglueQuery(NodeDefinition nodeDefinition)
-
Method Summary
Modifier and Type Method Description final NodeDefinition
getNodeDefinition()
final DataFetcherResult<Node>
node(ID id, @Autowired() NodeQueryParser nodeQueryParser, DataFetchingEnvironment dataFetchingEnvironment, @Autowired() LazyLoadingContext lazyLoadingContext)
node
query which finds a node by id-
-
Constructor Detail
-
GraphglueQuery
GraphglueQuery(NodeDefinition nodeDefinition)
- Parameters:
nodeDefinition
- the definition of the Node class
-
-
Method Detail
-
getNodeDefinition
final NodeDefinition getNodeDefinition()
-
node
final DataFetcherResult<Node> node(ID id, @Autowired() NodeQueryParser nodeQueryParser, DataFetchingEnvironment dataFetchingEnvironment, @Autowired() LazyLoadingContext lazyLoadingContext)
node
query which finds a node by id- Parameters:
nodeQueryParser
- used to parse the querydataFetchingEnvironment
- necessary to generate the node query, used for cachinglazyLoadingContext
- used to get the ReactiveNeo4jClient and the Neo4jMappingContext
-
-
-
-