apache / apache/grails-core

Neo4j - Gorm findBy or countBy not resolving dynamic relationships

Open
#14,638 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-data-neo4j
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

Doing GORM calls like this is not working:

`Person.findByNameAndManager("John", manager)`

where manager is a dynamic association of person.
It's trying to resolve manager as a property of person instead of a relationship.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Person.findByNameAndManager("John", manager) call and compare it with the related countBy behavior in the Neo4j GORM query resolution path. Trace how dynamic associations are distinguished from Person properties; done means both calls resolve manager as a relationship rather than a property.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, neo4j
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.