Skip to content

During Fluent find operations the default renderer is used to render parts of the cypher query, thus ignoring any and all configuration #2927

@THE-ORONCO

Description

@THE-ORONCO

When using the org.springframework.data.neo4j.core.FluentFindOperation.FindWithQuery#matching(org.neo4j.cypherdsl.core.Statement, java.util.Map) method (for example when using the Neo4jTemplate) the given statement is rendered using the default renderer. This means any configuration provided via a Configuration-Bean is lost / ignored for this particular statement.
I found this bug because the generated Cypher statements were always rendered with id instead of elementId even though I explicitly defined them via the Cypher-DSL and also set the Neo4J-Version to v5 in the Configuration-Bean.
A possible solution could be to not render the match-statement in place and instead delay the rendering until the configuration is in scope to get the actual renderer.

A minimal example showing the issue is provided here.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions