Package 

Class GraphglueQuery

  • 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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphglueQuery

        GraphglueQuery(NodeDefinition nodeDefinition)
        Parameters:
        nodeDefinition - the definition of the Node class
    • Method Detail

      • 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 query
        dataFetchingEnvironment - necessary to generate the node query, used for caching
        lazyLoadingContext - used to get the ReactiveNeo4jClient and the Neo4jMappingContext