@Configuration
class GraphglueDataConfiguration

Autoconfiguration associated with Neo4j part of library

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
@Bean
fun defaultIndexCreator(nodeDefinitionCollection: NodeDefinitionCollection, neo4jClient: Neo4jClient): DefaultIndexCreator
Link copied to clipboard
@Bean(value = ["graphglueNeo4jOperations"])
fun graphGlueNeo4jOperations(neo4jTemplate: ReactiveNeo4jTemplate, neo4jClient: ReactiveNeo4jClient, beanFactory: BeanFactory, renderer: Renderer): GraphglueNeo4jOperations

Bean to provide Neo4jOperations which support save over lazy loaded relations

Link copied to clipboard
@Bean
fun lazyLoadingContext(nodeQueryParser: NodeQueryParser, nodeQueryEngine: NodeQueryEngine): LazyLoadingContext

Creates a new LazyLoadingContext

Link copied to clipboard
@Bean
fun lazyLoadingContextInjector(beanFactory: BeanFactory): AfterConvertCallback<Node>

AfterConvertCallback bean which injects the LazyLoadingContext into all loaded Nodes

Link copied to clipboard
@Bean(value = ["neo4jClient"])
@ConditionalOnMissingBean
fun neo4jClient(driver: Driver, databaseNameProvider: DatabaseSelectionProvider): Neo4jClient

Creates the Neo4jClient For some reason, the one provided by the autoconfiguration does not exist

Link copied to clipboard
@Bean
fun nodeQueryEngine(configurationProperties: GraphglueCoreConfigurationProperties, client: ReactiveNeo4jClient, mappingContext: Neo4jMappingContext, renderer: Renderer): NodeQueryEngine

Creates a new NodeQueryEngine

Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun queryParser(nodeDefinitionCollection: NodeDefinitionCollection, filterDefinitionCollection: Optional<FilterDefinitionCollection>, objectMapper: ObjectMapper): NodeQueryParser

Parser for incoming GraphQL queries Allows transforming (a part of) a GraphQL query into a single Cypher query

Link copied to clipboard
@Bean
@ConditionalOnMissingBean
fun renderer(beanFactory: BeanFactory): Renderer

Provides a CypherDSL renderer which respects the CypherDSL configuration bean