Package 

Interface DataFetchingInterceptor

  • All Implemented Interfaces:

    
    public interface DataFetchingInterceptor
    
                        

    Interceptor to hook in database driver binding

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Object fetchData(DataFetchingEnvironment env, DataFetcher<Cypher> delegate) Called by the Graphql runtime for each method augmented by this library.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • fetchData

         abstract Object fetchData(DataFetchingEnvironment env, DataFetcher<Cypher> delegate)

        Called by the Graphql runtime for each method augmented by this library. The custom code should call the delegate to get a cypher query. This query can then be forwarded to the neo4j driver to retrieve the data. The method then returns the fully parsed result.